An anchor link points to a location identified by the URL fragment after #. Joomla websites use it for long-article contents lists, links to forms and navigation within a page.
Address and target
The fragment #details refers to an element with the unique identifier details. To link from another page, append the same fragment to that page’s URL. The target name must match, including case.
Every id must be unique within a document. Repeating a target in several modules creates ambiguity. The browser normally handles the fragment without sending it to the server as part of the HTTP request.
Anchors in Joomla
A Joomla editor can define a separate target before a block and a link to it. Check that the editor and content filters preserve its identifier. A separate element before the relevant section can serve as the target.
When linking from another Joomla article, verify the public route and language. If the destination page’s URL changes, update links containing fragments too.
Usability and accessibility
A fixed header may obscure the target. The target’s CSS scroll-margin-top can provide an offset. Check the result at different screen sizes.
Scrolling and keyboard focus are different. Navigation should remain understandable with a keyboard and screen reader. Link text should explain the destination.
Summary
Anchor links help visitors navigate Joomla content quickly. Reliable behaviour requires a unique target, a correct URL and checks of scrolling and focus.