iSEO system plugin has a function that adds a Canonical link in the head.
This is processed on the onBeforeCompileHead event.
However, there are a couple of issues regarding the canonical.
- I can't find how I could specify custom canonicals for each page. I didn't find anything in the documentation on how to use the Canonical screen of the iSEO component and how to link those canonicals to a certain page.
- It seems that iSEO plugin will add a canonical anyway, which it will be the same as the base href URL.
- In a multilingual website, adding the canonical on the onBeforeCompileHead event, it will cause the alternate hreflang link of the current page/language to be removed and replaced by that canonical.
Could explain how to use the canonicals? For example, how to create a canonical for our home page of the English language, and have that canonical added in our page for any possible duplicates of the page? Also, we don't want to remove the alternate link of the current language.
- I would suggest to add a setting in the iSEO plugin to disable the addition of the canonical URL.
- I would suggest that the addition of the canonical URL could be handled in the onAfterDispatch event, where it won't remove the Joomla's alternate hreflang link for the current page.
- Please explain how to add custom canonicals that the iSEO plugin will force inject in duplicate pages.
- I could add the setting in the iSEO plugin, and modify the code, so the canonical addition could be disabled. And if enabled, that would be handled on the onAfterDispatch event and sent the modified plugin back to you.
Thank you in advance for your feedback.