What is the best way to get canonical links on ALL URL's in D7?
I see nodes already have relative canonicals but I have a site with a lot of non node URL's that also need canonicals.
I added code to my
html.tpl.php to add a canonical on any page but now I get double ups on node based pages.
Thanks for anyone taking a look at this.
I used a
theme_html_head_alter() hook to remove the node canonicals.
Then I added new canonicals into the
html.tpl.php so every page has them and there is only one on the node pages.