More in this section

Forums / Developing with Sitefinity / Canonical URL's not capturing QueryString values

Canonical URL's not capturing QueryString values

2 posts, 0 answered
  1. Sunny
    Sunny avatar
    2 posts
    30 Sep 2015
    22 Jan 2016
    Link to this post

    Hi, We are working on Sitefinity8.1 and  are having issues working with canonical url for querystring values. The canonical URL seems to be working fine for static pages but not for dynamic and querystring values  even though we have enabled the querystring for canonical URL's. We have created a querystring parameter call 'page' but still for URL's like mentioned below

    if i look at the view source of page i can only see not the complete URL

    How can i make it work. Please suggest.

    Also it doesnot seems to work for pages which are using dynamically created content. Examples of URL's  are given below

    It's rendering the same canonical URL all the  time which is







  2. Martin Gebov
    Martin Gebov  avatar
    15 posts
    12 Dec 2016
    25 Jan 2016
    Link to this post

    The first issue you reported is indeed a bug. I've logged a bug here. I've also escalated this bug for fixing. However I was not able to reproduce the second issue on my end. Here is what I did:

    1. Created a dynamic module named Cars
    2. Created a widget that displays paginated Cars
    3. Set the detail page to be another page which has a dynamic content view inside it
    4. When I clicked on the item, the detail page opened and had the correct canonical url inside it.
    The Url of the master page is http://localhost/master.
    The url of the detail page is http://localhost/detail.

    The generated link in the detail page is  <link rel="canonical" href="http://localhost/detail/c1" />. Let me know if the steps taken at your end are the same?

    Martin Gebov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered