Bug #15498
closed
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.
How can I reproduce this? I guess it only appears on using realurl?
@Thomas: Against which TYPO3 release did you create the patch?
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.
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.
Duplicate of #1235. I've just added a patch to this site. Please confirm if it works...
Also available in: Atom
PDF