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.
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.
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.
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
Hi Richard
Are you using assigned domains in Umbraco or just bindings in IIS?
Gareth
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
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
Thanks Gareth,
I will raise an issue
is working on a reply...