Project

General

Profile

Actions

Bug #69588

closed

prefixLocalAnchorsWithScript: URL does not match request URL

Added by Sebastian Mendel over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2015-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.6
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

prefixLocalAnchorsWithScript() does not prefix local anchors with requested URL but with newly created.

The newly created URL does not match the requested URL - if the URL contains query parameters with empty values.
explodeUrl2Array() drops any empty query parameters.

With a request URL like:

example.org/foo=1&bar=

prefixLocalAnchorsWithScript creates:

example.org/foo=1

This breaks local anchor URLs - as URLs does not match anymore.

Request URL and local anchor URL must be identical.

Additional note:

The intention for this method was having working local anchors without page reloading (required for base href) - for this it is required the URLs match exactly - why is there any URL recreation at all?

Actions #1

Updated by Benni Mack over 8 years ago

  • Target version changed from 6.2.14 to 6.2.16
Actions #2

Updated by Tobias Hein over 7 years ago

+1

Actions #3

Updated by Axel Kummer over 7 years ago

+1

Actions #4

Updated by Markus Klein over 6 years ago

  • Status changed from New to Closed
  • Target version deleted (6.2.16)

v6.2 is not supported anymore and the feature has been removed with v8 already. Closing this report therefore.

Actions

Also available in: Atom PDF