Example why manual canonical URLs are so important for forum
- why not use canonical URLs by original metatag plugin (and why I added new token
- why always generate (save) canonical URLs for new topics
- why is e_PAGE or any other way how to find where you are so important?
There is the forum post with ID 226 as an example.
Original metatag uses e_REQUEST_URL as canonical URL.
But e_REQUEST_URL for the link to latest post is with parameters too for example /?&p=1 in URL
Fixing this doesn't help because there is next example when this fails:
- if you change topic name, then URL is generated from this title.
So now are available those links:
https://www.e107sk.com/forum/general-theme-questions/226/gaia-news-solved/?&p=1#post-762 https://www.e107sk.com/forum/general-theme-questions/226/gaia-news-solved/ https://www.e107sk.com/forum/general-theme-questions/226/gaia-news/etc... (there is a lot of more)
But if you generate canonical URLs (in relative Canonical URLs), all those links have the same canonical URL.
because canonical relative URLs are combination entity type and entity ID (in this case forum topic and ID 226).
But this is possible only if you are able to identify entity type and ID correctly. Asking for one way how to do it through all system is probably too much.
- Main Admin