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

Forums / Developing with Sitefinity / Redirect Generated URL to default URL

Redirect Generated URL to default URL

5 posts, 0 answered
  1. Paul Markham
    Paul Markham avatar
    19 posts
    Registered:
    02 Feb 2010
    14 May 2010
    Link to this post
    When additional URLs are added for a page, if they are not set as default there is the option for them to redirect to the default URL. This option does not appear for the Generated URL though.

    How do I redirect the Generated URL to the default URL?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    14 May 2010
    Link to this post
    Hi Paul Markham,

    When you add additional url there is an option "". So the additional url will redirect to the default url. There is no option to redirect to the GeneratedUrl. You can achieve this by creating a custom HttpModule that gets the current request and page and checks whether it is a GeneratedUrl or not. The ICmsPage object has Urls and StaticUrl properties that you can use.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Paul Markham
    Paul Markham avatar
    19 posts
    Registered:
    02 Feb 2010
    14 May 2010
    Link to this post
    Thanks for the reply. However, I think you have misunderstood - I don't want to redirect to the Generated URL.

    I want to redirect requests for the Generated URL to the additional URL that is set as the default.

    The option "Redirect to the default URL" does not appear next to the Generated URL field.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    14 May 2010
    Link to this post
    Hi Paul Markham,

    Ok it is the opposite, but since this option is not available out of the box you need custom HttpModule as described in the previous reply.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Paul Markham
    Paul Markham avatar
    19 posts
    Registered:
    02 Feb 2010
    17 May 2010
    Link to this post
    That sounds like a fair bit of hassle to work around something that seems like it should exist already.

    Can you not add the "Redirect to the default URL" option to the Generated URL in Sitefinity, for the benefit of everyone?
Register for webinar
5 posts, 0 answered