Bug #65671
closedautomatically added leading '/' to href-Attribute even if I just want '#'
100%
Description
Since I updated from 6.2.5 to 6.2.10, all links that looked this was before
<a class="scroll_to_next" href="#down">next</a>
now have a leading slash in the href attribute
<a class="scroll_to_next" href="/#down">next</a>
which is bad, because I use a jQuery plugin that is looking for the href value '#down' without any leading slash. Is this behavior a bug or a feature? Are there any configuration settings to influence this behavior?
Updated by Mathias Schreiber over 9 years ago
- Assignee deleted (
Dmitry Dulepov)
You might want to set prefixLocalAnchors.
The change is intended to deny cache poisioning.
Updated by Jigal van Hemert over 9 years ago
The security bulletin
http://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2014-003/
tells the entire story. You probably have no absRefPrefix set; the fix changes the way the links are generated and they are indeed now prefixed with a slash ('/'). The easiest solution is probably changing the jQuery plugin to accept the slash.
Updated by Jigal van Hemert over 9 years ago
- Status changed from New to Closed
Closed as the reporter indicated it was solved.