Bug #15498
closedStrange generated link in indexed_search
0%
Description
In indexed_search results the link after PATH: is generated appended with "?0=" like:
http://cms.eur.nl/scholieren/erasmus-colleges/?0=
this should be:
http://cms.eur.nl/scholieren/erasmus-colleges/
(issue imported from #M2376)
Files
Updated by Thomas Oppelt over 17 years ago
An old task but still unsolved...?
I disagree cause the result of (array)unserialize('a:0:{}') is simply an empty array. The problem is that ->makeInfo function does not pass the cHashParams to ->linkPage function at all and then of course $urlParameters = (array)unserialize($row['cHashParams']) results in $urlParameters0 => FALSE and then you get that var &0=. So simply add cHashParams within ->makeInfo function linkPage-call. patch attached.
Updated by Oliver Hader over 17 years ago
How can I reproduce this? I guess it only appears on using realurl?
@Thomas: Against which TYPO3 release did you create the patch?
Updated by Thomas Oppelt over 17 years ago
No special reproducing required and has nothing to do with realurl. Just look at the url generated for the path-links of indexed search results (frontend). As i said this happens cause ->makeInfo function does not pass the cHashParams to ->linkPage function and then the $urlParameters-array contains $urlParameters0 => FALSE which leads to the additonal and senseless var &0= and all other cHashParams are missing.
Generally it's not evident to me why the title-link generation is that way different from the path-link generation, but that's an additional point. Imho it's enough for the moment to add cHashParams entries to linkPage-call within function ->makeinfo...discussion welcome.
@Oliver: patch.diff was generated against T3 4.1 core.
Updated by Thomas Oppelt almost 17 years ago
Link generation to external files should not be touched by the patch actually, cause ->makeInfo should return a direct link to data_filename, but I can't analyze that at the moment, sorry, maybe someone else could have a closer look.
Updated by Michael Stucki over 16 years ago
Duplicate of #1235. I've just added a patch to this site. Please confirm if it works...