#69588prefixLocalAnchorsWithScript: URL does not match request URL
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?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.