+1-888-365-2779
Try Now
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
    Registered:
    30 Sep 2015
    22 Jan
    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

    http://10.64.1.4:8080/adviser/site/public/news/page/2

    http://10.64.1.4:8080/adviser/site/public/news/page/3

    http://10.64.1.4:8080/adviser/site/public/news/page/4

    if i look at the view source of page i can only see http://10.64.1.4:8080/adviser/site/public/news 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

    http://10.64.1.4:8080/adviser/site/public/news/detail/is-your-business-ready-for-this-tax-year-end-

    http://10.64.1.4:8080/adviser/site/public/news/detail/indexation-is-here-from-aviva

    It's rendering the same canonical URL all the  time which is http://10.64.1.4:8080/adviser/site/public/news/detail

     

     

     

     

     

     

  2. Martin Gebov
    Martin Gebov  avatar
    15 posts
    Registered:
    03 Nov 2016
    25 Jan
    Link to this post
    Hi,

    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?

    Regards,
    Martin Gebov
    Telerik
     
    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