1. 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

Discussion in 'XenForo Development Discussions' started by allewreK, Jul 3, 2016.

  1. allewreK

    allewreK Active Member


    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 ?

  2. Mike

    Mike XenForo Developer Staff Member

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

Share This Page