An anchors can be an URL-encoded string, whereas ID can not be encoded.
We always decode anchors before comparing them with IDs here.
Closes gitlab-com/gitlab-docs#351