Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Link token doesn't work if using anchor inside link
» Link token doesn't work if using leading slash for path after &token&
Component:
Code
» Documentation
Category:
bug
» task
The problem above had another reason:
If i write <a href="&base_url&/path#anchor"> the link don't work, instead it must be <a href="&base_url&path#anchor"> (without the slash).
This should be mentioned in using-advanced-help.html.
Comments
Comment #1
Roi Danton commentedThe problem above had another reason:
If i write
<a href="&base_url&/path#anchor">the link don't work, instead it must be<a href="&base_url&path#anchor">(without the slash).This should be mentioned in using-advanced-help.html.
Comment #2
fgmThe way I see it, the existing wording and examples in using-advanced-help.html make it clear that no slash should be used, ditto:
Use <a href="&base_url&admin/settings/site-configuration"> to reference any normal path in the site.
It doesn't say:
Use <a href="&base_url&/admin/settings/site-configuration"> to reference any normal path in the site.
Do you have an even clearer wording suggestion that wouldn't add extra doubt to readers ?
Comment #3
fgmComment #4
fgmNo user answer in over 5 months, assuming fixed.