How can I add a menu link as /test#anchor and link to #anchor section on the test page?
I need to add a menu item that links to specific section on the target page. Drupal 7 had menu tokens to achieve it. How can I do this in Drupal 8?
/test#anchor
in the "Link" fieldPoint being - fragments are accepted as part of the link in Drupal 8.
One exception seems to be the home page; it doesn't work with the <front>
token, nor /#anchor
. The fragment isn't rendered in either case.
/node/1#test
and that worked fine. Maybe your theme is stripping it, try switching to a core theme temporarily to see