Bug #15909
closedInternal (on page) links corrupted with t3lib_parsehtml::prefixResourcePath()
0%
Description
t3lib_parsehtml::prefixResourcePath() does't work correctly for <a> links with internal (# - onpage) targets:
e.g.
<a href="#content">Skip down to content</a>
will return
<a href="/fileadmin/path/#content">Skip navigation</a>
local target prefixed with current path... Visitor will be redirected somewhere to 404 error, if he clicks link like this, instead of moving forward on the page.
(issue imported from #M3008)
Files
Updated by Lukas Vorlicek over 18 years ago
Right example with A tags
<a href="#content">
will return
<a href="/fileadmin/path/#content">
Updated by Ernesto Baschny about 15 years ago
Prefixing #-anchor with current page path is needed if you are using the baseUrl feature (required for realurl), and is enabled with config.prefixLocalAnchors = all.
It won't prefix it with "fileadmin/path/" thou, but with the current page path. Not doing it will jump to the start page, because without it, the anchor will be relative to the baseUrl.