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

Forums / Bugs & Issues / New Extensionless Url Problem

New Extensionless Url Problem

18 posts, 0 answered
  1. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    18 Feb 2009
    Link to this post
    For some time now we have used the sf404.aspx solution mentioned in the support docs for handling extensionless Urls.  Prior to 3.2 SP2 this functionality worked perfectly.  

    3.2 SP2 introduced the following bug:

    When I request http://www.mysite.com/plans/ OR http://www.mysite.com/plans (note the lack of a trailing / in the second Url) I am redirected to http://www.mysite.com/plans/default.aspx?404;http://www.mysite.com:80/plans

    It appears that this issue has been fixed in Sitefinity 3.6 but ONLY for the second Url above (the one WITHOUT the trailing slash).  Entering the Url WITH the trailing slash produces the following error:

    --- Start of Error ---
    Server Error in '/' Application.
    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /plans/.aspx
    --- End of Error ---

    The desired behavior here (in both scenarios, actually) is of course that the default (first) page under "Plans" in the Sitefinity page tree view should be displayed, but that only appears to be working when the trailing slash is OMITTED.  We can't count on our users to know that and we have MANY links to resources such as this throughout our site so we simply cannot put the upgrade to 3.6 into production until this issue is resolved.

    I read in the release notes that there were improvements made to extensionless Url handling so perhaps there is some new step in the process of setting this up that I have missed, but the documentation still seems to be at v3.2 so I can't be certain of that either.
  2. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    19 Feb 2009
    Link to this post
    Is anyone else able to reproduce this issue on their Sitefinity 3.6 implementations?

  3. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    19 Feb 2009
    Link to this post
    I was able to recreate this issue with a brand new Sitefinity 3.6 web site project as well as in my existing project that was upgraded to Sitefinity 3.6.  This is a BIG issue for anyone who has upgraded to 3.6 and I hope that we hear back from Sitefinity re: a fix VERY SOON
  4. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    20 Feb 2009
    Link to this post
    Hi Zack,

    I have same problem...
    I temporarily has resolved this problem like this:
    1. Open web.config file
    2. Replace <cms defaultProvider='Sitefinity' pageExtension='.aspx' on
    <cms defaultProvider='Sitefinity' pageExtension='/'
    3. Save changes.

    But!
    Some URLs of modules (e.g. news) not work! Sitefinity shows error that page //localhost/news/ not exists!

    Someone have ideas how to resolve this issue?

    Best regards,
    Anton.

  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Feb 2009
    Link to this post
    Hello Anton,

    The issue was fixed for the upcoming hotfix. The hotfix itself is going to be released today or, in the worst case on Monday.

    A workaround would be to create a Http Module which trims the trailing slash. The module should be registered first in the http modules collection.

    As for the pageExtension property set to slash, this is not a valid extension.
    All the best,
    Georgi
    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.
  6. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    24 Feb 2009
    Link to this post
    Hi Georgi,

    I has downloaded hotfix for Sitefinity 3.6 and copied bin folder into bin folder of my project. After restarting of application I have again this issue...

    How to resolve this issue?

    Best regards,
    Anton.
  7. Derek Langone
    Derek Langone avatar
    1 posts
    Registered:
    12 Jan 2009
    26 Feb 2009
    Link to this post
    Hi,

    Somebody resolved this problem?

    Best regards,
    Anton.
  8. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    26 Feb 2009
    Link to this post
    Hi Derek Langone,

    Here is a workaround using the Http Module.

    1. Copy attached file CustomHttpModule.cs

    2. Register the Http module in your webiste Web.config file(modules and httpModules sections).
     Note: It is very important to put CustomModule before other modules:

    <modules> 
    <remove name="CustomModule" /> 
    <remove name="ScriptModule"/> 
    <remove name="Cms"/> 
    ... 
    <add name="CustomModule" type="CustomHttpModule, App_Code"/> 
    <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    <add name="Cms" type="Telerik.Cms.Web.CmsHttpModule, Telerik.Cms"/> 
    loadHttpModule, Telerik.Web.UI"/> 
    ... 
    </modules> 

    I hope this information will help you. Just to let you know we found what caused a bug related to the reported issue and it will be fixed in the SP of 3.6

    Kind regards,
    Parvan
    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.
  9. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    26 Feb 2009
    Link to this post
    3.6 SP1 fixed this issue for me. :D
  10. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    27 Feb 2009
    Link to this post
    Hi Zack,

    Maybe you have in mind hotfix for 3.6?
    Tell me please what you copied - only files from bin directory?

    Thanks,
    Anton.
  11. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    27 Feb 2009
    Link to this post
    Yes, sorry ... I WAS referring to the Hotfix for 3.6.  And yes, I just copied the bin folder from the hotfix right over the top of the bin folder in my project.


  12. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    27 Feb 2009
    Link to this post
    Thanks guys,

    I has copied once again all from bin into my project and restart application.
    It works!

    Best regards,
    Anton.
  13. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    27 Feb 2009
    Link to this post
    Glad you were able to get it working!
  14. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    27 Feb 2009
    Link to this post
    Oups, I has hurried...

    After restart of application only the first request work. After refresh of page in browser I have an error:

    Server Error in '/' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /about/.aspx


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


    Any ideas?

    Anton.
  15. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    27 Feb 2009
    Link to this post
    I has made a new application from Sitefinity_3_6_1870_standard_BlankProject.zip and has added two pages - home and test in root directory.
    On home page added links for test page:
    1. /test
    2. /test/

    First test.
    Restart of application.
    When I click on /test then I get test page. It's ok.
    When I click on /test/ then I get error (and URL - /test/.aspx)

    Second test.
    Restart of application.
    When I click on /test/ then I get test page. It's ok.
    When I click on /test/ once again (or refresh page)- then I get same error (see first post)

    Zack wrote what hotfix has resolved issue for his project.
    In my case even standard blank doesn't work...

    Why link /test/ doesn't work?
    What I do wrong?

    Thanks,
    Anton.

  16. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Mar 2009
    Link to this post
    Hi Anton,

    Please note that /test and /test/ refer to two different locations. When you add a slash after test, the paths becomes different. Do you have a page under the node test, which should be showed?

    Sincerely yours,
    Georgi
    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.
  17. Anton Mernov
    Anton Mernov avatar
    110 posts
    Registered:
    03 Dec 2008
    03 Mar 2009
    Link to this post
    Hello Georgi,

    If I set Page type for test page to Page group and add to test node a page test2 then:

    If I try get URL /test/ then I get same error.
    If I try get URL /test then I get reditect to  /test/test2.aspx

    In Sitefinity 3.5 I have next structure in SiteMap:
    home
    about
       - contacts
    sitemap
    ....
    All nodes are Normal pages. Request for /about/contacts or /about/contacts/ always return content of contacts page.
    In Sitefinity 3.6 I want to do same. It is possible?

    Best regards,
    Anton.

  18. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    06 Mar 2009
    Link to this post
    Hello Anton,

    I am not sure how we can handle this in the current implementation. I will see if we will be able to change this logic for the upcoming service pack. I will contact you next week, if we manage to find out an easy solution to this case.

    Regards,
    Georgi
    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
18 posts, 0 answered