Project

General

Profile

Actions

Bug #14213

closed

Indexed Search cuts the first letter of domain name in searchresult

Added by Marco Geweke about 20 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2004-06-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Indexed Search supports searching over multiple domains in an installation of TYPO3. While generating the searchresult , Indexed Search cuts the first character of the section headers, because this are only slashes in a single-domain environment. But even if the section header starts with www.* because of the multi-domain feature, the first character ist cut off and the section ist named "ww.searchresult.org" or similar. I wrote a simple patch which checks for the slash an lets the first character untouched if it's anything else.

(issue imported from #M177)


Files

Actions #1

Updated by Michael Stucki about 20 years ago

According to Ingmar the notation with the brackets is obsolete. Use curly brackets instead:

$sectionName = $this->getPathFromPageId($theId);
if ($sectionName{0} == '/') $sectionName = substr($sectionName,1);

Actions #2

Updated by Marco Geweke almost 19 years ago

The problem is still not fixed in the new indexed_search of 3.8.0.

Actions #3

Updated by Michael Stucki almost 19 years ago

Yeah I had this patched locally but didn't know why, that's why I removed the patch before submitting changes...

I'll do that.

Actions #4

Updated by Michael Stucki over 18 years ago

Committed

Actions

Also available in: Atom PDF