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 199 posts 529 karma points
    Jun 22, 2020 @ 18:39
    lori ryan
    0

    Canonical URL

    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 99 posts 318 karma points
    Jun 22, 2020 @ 18:48
  • Nik 1413 posts 6212 karma points MVP 3x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies