1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / how to remove the ReturnURL param on news?

how to remove the ReturnURL param on news?

4 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    05 May 2009
    Link to this post
    Hi

    I have a news item on the home page
    If you click on it, it redirects to a dedicated news page to display the full news article

    however, the URL has this on the end
    news-article-name.aspx?ReturnURL=%2fhome.aspx

    How would i remove this as the customer has commented this isn't good for SEO

    thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    05 May 2009
    Link to this post
    Hi Quade,

    It seems that you have set ReturnUrlPersistance property of the control to QueryString. To disable it open NewsView control in edit mode, go to advanced tab, Explicit links category and set ReturnUrlPersistance  property to None.

    Programmatically by overriding the control

     public override Telerik.Cms.Engine.WebControls.ContentBasic.ItemKeyPersistanceMode ReturnUrlPersistance 
        { 
            get 
            { 
                return ItemKeyPersistanceMode.None; 
            } 
           ...  
             ... 
       } 


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    05 May 2009
    Link to this post
    Thanks

    although i dont see that option in explict links
    I'm using 3.2 sp2

    Thanks
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 May 2009
    Link to this post
    Hi Quade,

    There are two options that I could suggest.

    1. Remove the page that is especially prepared to hold the full info of a single item and use the automatically generated.

    2. Upgrade to the last official release.


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
4 posts, 0 answered