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

Forums / Developing with Sitefinity / URL Resolution Issue

URL Resolution Issue

4 posts, 0 answered
  1. Ian Muir
    Ian Muir avatar
    13 posts
    Registered:
    26 Jan 2010
    06 Oct 2011
    Link to this post
    We currently have a client with a Sitefinity site that has having a strange problem with URLs. No matter what page in site is requested, it always shows the home page.

    I've set the site to output some debug information and it appears that Sitefinity is not getting the request correctly.
    You can see on the following 2 pages, I've outputed most of the properties of Telerik.CmsContext.CurrentUrl and the Request.RawUrl

    http://groceryoutlet.com/Berkeley-CA/
    http://groceryoutlet.com/Berkeley-CA/Default/LearnMore.aspx

    Any ideas on why this isn't working? The codebase is the same for all of the other stores, which are working correctly. Is it possible that a setting in the web.config or in IIS has caused this?
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    11 Oct 2011
    Link to this post
    Hi Ian,

    Examining the link to the project you provided it appears all the links are properly navigating to the selected page url. Redirect can be defined in web.config similar to.(there are also other approaches.)
    <rule name="redirect index.asp" stopProcessing="true">
        <match url="^(\w*/)?index\.asp" />
           <conditions>
             <add input="{HTTP_HOST}" pattern="domain\.com$" />
           </conditions>
         <action type="Redirect" url="http://www.domain.com/{R:1}" />
    </rule>
     Maybe there was a redirect rule that was set for all pages, but it appears to be removed now as all pages are navigable. Write back if there is another issue or the current one persists.

    Regards,
    Stanislav Velikov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Ian Muir
    Ian Muir avatar
    13 posts
    Registered:
    26 Jan 2010
    11 Oct 2011
    Link to this post
    While you're correct that the pages are technically navigable, you can tell when you click the second link that it is attempting to load the content and master page from the home page, not the appropriate page. As I mentioned in my initial post, I'm outputting several of the values from the Telerik.CmsContext.CurrentUrl object and you can see that all of the pages are attempting to load the same path and the same guid regardless of the Url requested.
  4. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    08 Dec 2016
    13 Oct 2011
    Link to this post
    Hello Ian,

    Thank you for the additional exhalations. I see the url always starts with Default/... .
    You say you have the same settings in other sites and it is working can you compare the API apart and the sites web.config to see if there is some url rules that specify this.
    If you have url rewriting in IIS or <urlmapping> in web.config some of the url rules may ignore your initial rule.
    Can you provide additional information on the case like how you use Telerik.CmsContext.CurrentUrl or web.config.

    Regards,
    Stanislav Velikov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered