Bug #17013
closed
My workaround is the following TypoScript (which requires a "top" anchor, because I didn't find a way to simply add a #):
tt_content.stdWrap.innerWrap2 = |
tt_content.stdWrap.innerWrap2.append = TEXT
tt_content.stdWrap.innerWrap2.append {
value = {LLL:EXT:css_styled_content/pi1/locallang.php:label.toTop}
wrap = <p class="csc-linkToTop">|</p>
typolink = 1
typolink {
parameter.data = page:uid
section = top
}
}
this is not a bug but a missing configuration in your setup:
config {
prefixLocalAnchors = all
}
that's the trick for simulatestatic and realurl. But this is documented if I can remember correctly.
Uuh. I think I must confess that I didn't search thoroughly for a configuration option, because the combination baseUrl set / prefixLocalAnchors unset can't possibly work (not even if you don't use simulateStaticDocuments / RealURL).
Maybe it should default to 'all' ... but feel free to close this one. Doh!
I think it would make sense to prefixLocalAnchors=all when baseURL is set and prefixLocalAnchors is not set at all. Let's see if we can get that into 4.2.
I stumbled over a similar problem:
- baseURL not set
- prefixLocalAnchors = all
- simulateStatic is ENABLED
Links with <a href="#" ...> are wrongly replaced.
Cheers,
Ernesto
- Category deleted (
Communication)
- Status changed from Accepted to Rejected
- Target version deleted (
0)
- PHP Version deleted (
4)
Configuration issue. We'll enhance the documentation. See #39012.
Also available in: Atom
PDF