Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Brookes 34 posts 57 karma points
    May 10, 2012 @ 23:37
    Richard Brookes
    0

    NiceUrl and umbracoHideTopLevelNodeFromPath issue

    I have an installation of version 4.7.2 and I am suddenly experiencing a strange issue with the NiceUrl method.

    The nice url for all of my documents is being returned as //page/ i.e. there is an extra / at the start which is causing all of my links to fail. Instread of getting a link to http://mydomain/mypage/ the NiceUrl is producing http://mypage/ which is of course then getting a 404.

    My workaround is to set umbracoHideTopLevelNodeFromPath=false in the webconfig which then produces http://mydomain/homepage/mypage/ which is not what I want but at least it means that my pages can be found.

    No amount of republishing to clear the cache has worked.

    This issue is suddenly occuring on a site that has worked fine until now. I initially suspected a permission issue and so ran the permissions check stage of the install but this tells me that my permissions are fine.

    Any help much appreciated

  • Gareth Evans 142 posts 334 karma points c-trib
    May 11, 2012 @ 02:19
    Gareth Evans
    0

    Hi Richard

    Are you using assigned domains in Umbraco or just bindings in IIS?

    Gareth

     

     

  • Richard Brookes 34 posts 57 karma points
    May 11, 2012 @ 02:52
    Richard Brookes
    0

    Hi Gareth,

    I wasn't using assigned domains because I only have one root node. However I have just tried adding the domains in the manage hostnames dialog and this seems to fix the issue. So this is a much better work around.

    I understood that hostnames were not required? I have only ever set these for multilingual sites. I would still like to find out what the actual cause of the error was.

    Thanks for your help

  • Gareth Evans 142 posts 334 karma points c-trib
    May 11, 2012 @ 02:55
    Gareth Evans
    0

    Hi Richard

    Excellent. I believe it is a bug in NiceUrl, I was just troubleshooting with the suggestion to add the Domain
    Could you please raise a codeplex bug describing the original problem and the fix?

    To clarify, adding the domain in the managed hostnames dialog is not required but the lack of it being there is probably causing the extra / to be added due to a bug.

    Gareth

     

  • Richard Brookes 34 posts 57 karma points
    May 11, 2012 @ 04:59
    Richard Brookes
    0

    Thanks Gareth,

    I will raise an issue

Please Sign in or register to post replies

Write your reply to:

Draft