f:link.page addQueryString="1" doesnt work properly
Im trying to generate a "to top" link like in the example in the wiki
<f:link.page addQueryString="1" section="#top">To Top</f:link.page>
But this will always generate a link where the uid of the page is given twice:
#4 Updated by Alfred Bez almost 5 years ago
I have the following code:
<f:link.page pageUid="101" addQueryString="1">linktext</f:link.page>
Example Page-URL (current page):
Expected Result (link-href):
My Result (link-href):
#6 Updated by Claus Due over 4 years ago
Just a tiny update from the side lines: this issue has been reviewed, judging if it has any impact on or is affected by the merging of the standalone Fluid package as TYPO3 dependency.
Verdict: NOT AFFECTED. However... this looks suspiciously like unexpected behavior due to input arguments - the ViewHelper itself will merely forward to typoLink which will apply absRefPrefix among others. And specially when rendering section links: You can't judge this from which URL you end up on. You have to inspect the actual link tag to see the URL; if it, which I suspect it does, lacks the pageUid argument you may want to add it to force the ViewHelper to render a full page link without trying to resolve any target page UID and so pass an explicit "id" parameter to typoLink via the ViewHelper. Hope it helps :)
#7 Updated by Claus Due about 4 years ago
- Status changed from New to Closed
Will close this one: three workarounds recorded, typoLink connection explained, no feedback for 10 months - assuming required info was found in typoLink docs or one of the workarounds have been used.
If that is not correct please ask for this issue to be reopened!