Change canonical link-tag for posts Ember-url to use new canonical url

The following PR introduced new canonical urls for posts. And I really appreciate this! :tada:

In crawler-view check the canonical link-tag for a posts Ember-url like:
https://meta.discourse.org/t/feedback-on-new-hamburger-and-user-menus/32519/123

<link rel="canonical" href="https://DOMAIN/t/SLUG/32519?page=6">

This should be changed to contain …#post_123:

<link rel="canonical" href="https://DOMAIN/t/SLUG/32519?page=6#post_123">

Ressources on anchors in canonical-tags:

1 Like