Announcement

Collapse
No announcement yet.

Canonical links removed from Standard Meta Tags when site is published?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Canonical links removed from Standard Meta Tags when site is published?

    Hi - just upgraded a site from v9 to v2013.

    In the 'Standard Meta Tags' I have a canonical link tag which is displayed in the code but appears to be removed when the site is published. The code is:

    <actinic:block if="%3cactinic%3avariable%20name%3d%22Canonical%20Link%22%20%2f%3e%20%21%3d%20%22%22" >
    <link rel="canonical" href="<actinic:variable name="WebSiteURL" />/acatalog/<actinic:variable name="Canonical Link" />" />
    </actinic:block>
    Any ideas?
    Regards
    David

    #2
    I know it's an obvious question but it has to be asked:

    Is the canonical link variable set for the relevant pages?

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Hi Mike - just did some more testing and it is the variable that is being ignored not the canonical link tag.

      I added just the variable to the code and in the preview page it displays the URL correctly, but is not displayed on the published site.

      I also added the following without any blocks:

      <link rel="canonical" href="<actinic:variable name="WebSiteURL" />/acatalog/<actinic:variable name="Canonical Link" />" />
      The published source code displays

      <link href="http://www.domain.com/acatalog/" rel="canonical">
      Regards
      David

      Comment


        #4
        That's all a bit weird - suddenly started working correctly - and I'm sure I have not changed anything to make it work.

        Thanks for the replies guys.
        Regards
        David

        Comment


          #5
          Advice.. if you are using SellerDeck filtering “make filtering the default view” the URL changes to a cgi-bin link so you need 301 redirects or a canonical tag, but the canonical tag cannot use the variables store folder and page name for filtered pages as it causes a problem for search engines listings as they cannot index content. See this post for details: http://community.sellerdeck.com/showthread.php?t=55375
          Peblaco

          Comment

          Working...
          X