Project

General

Profile

Actions

Bug #65671

closed

automatically added leading '/' to href-Attribute even if I just want '#'

Added by Jay Dinse over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2015-03-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #62723: Cache poisoning with prefixLocalAchorsClosed2014-11-05

Actions
Actions #1

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.

Actions #2

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.

Actions #3

Updated by Jay Dinse over 9 years ago

  • % Done changed from 0 to 100

Thanks, that helped a lot!

Actions #4

Updated by Jigal van Hemert over 9 years ago

  • Status changed from New to Closed

Closed as the reporter indicated it was solved.

Actions

Also available in: Atom PDF