Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • lori ryan 239 posts 573 karma points
    Jun 22, 2020 @ 18:39
    lori ryan
    0

    Hi Just wondering how you guys manage your Canonical URL on each page.

    Should it just be

    <link rel="canonical" href="@Request.Url.AbsoluteUri" />
    

    If the property umbracoAlias is available should that be taken into account?

  • Dhanesh Kumar MJ 158 posts 511 karma points c-trib
    Jun 22, 2020 @ 18:48
  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Jun 22, 2020 @ 18:56
    Nik
    1

    Hi Lori,

    It actually depends on your site as there are lots of things to consider. For example, if your site is available on multiple domain names, you need a mechanism for telling it which domain is the canonical. Also, if sub sections of your site are available on different domains (which is something I've seen), for examples "news.domain.com" might only contain the news section of a site, then you need to know if the canonical on those pages is news.domain.com or domain.com.

    In my opinion, umbracoAlias indicates something that shouldn't be the canonical as it's an "alternative" not a "definitive". But you might have other things in your site that do funky things with urls that you need to consider.

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft