• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Change $head.canonical variable with Listeners


Formerly allewreK

I have two domains on my website.
- One is the main domain (domain.com) ;
- The second is a domain that I use for my iOS application (mobile.domain.com) ;

My problem is that I have duplicated content in google, pages from mobile.domain.com is indexed.

I would like to update, with a listener, the $head.canonical variables so I do not have duplicate content.

I don't find the variable in my listeners ? Do you have a solution ?



XenForo developer
Staff member
It probably makes more sense to just edit the templates in question (which add the canonical tag).