Change $head.canonical variable with Listeners

Jean-Baptiste

Well-known member
Hello,

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 ?

Regards
 
It probably makes more sense to just edit the templates in question (which add the canonical tag).
 
Top Bottom