How can I have links to anchors in menus?
Add/edit a menu link
Enter  /test#anchor in the "Link" field
Save the link
You're done, make tea :)


Point 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 &lt;front&gt; token, nor /#anchor. The fragment isn't rendered in either case.