Bug #15750
closedfirst letter of section name missing in result display with multiple domains
0%
Description
I have a site with multiple domains and an indexed search page which is mounted into each domain to achieve a search across all domains (see first part of attached image).
If you choose the "section hierarchy" style to display the results the section names are the domain names and not the page titles, which is O.K. (luv it ;-)
The bug is that in domain names which contain two dots (subdomain.domain.tld) the first letter of the section name is missing (see second part of image).
(issue imported from #M2741)
Files
Updated by Axel Jindra over 18 years ago
I may add:
It's got nothing to do with two dots, but with domain records, which are fetched as section titles.
The problem is caused by line 741 in pi/class.tx_indexedsearch.php:
$sectionName = substr($this->getPathFromPageId($theId),1);
where the first letter is stripped to get rid of the leading / in section names.
However domain names do not have the leading slash, so they should not be stripped.
Updated by Axel Jindra over 18 years ago
I have created a patch which works fine for me, perhaps you'll check it yourselves and in case it's OK take it to CVS and close the bug.
Updated by Axel Jindra over 18 years ago
seems to be resolved in 4.0 final (or even rc3, did not check that)
Updated by Martin Kutschker almost 17 years ago
Closed because report could not reproduce the bug any more.