umbracoUseDirectoryUrls set false -> 'This document is published but its url would collide with content (error)'
Following upgrade of site from 7.4.2 to 7.5.10, for all nodes except the home node, the back-end property 'Link to document' displays as:
"This document is published but its url would collide with content (error)"
The site front-end appears to behave as usual and the creation and publication of new content is not affected.
Root 'Culture and Hostnames' settings:
Culture : Inherit
Two domain / language settings:
10.100.0.132:92
en-us
10.100.0.132:9200
gd-GB
We have a custom IUrlProvider in place that allows redirection to external addresses based on a property value:
public class CnesExternalUrlProvider : IUrlProvider
{
public string GetUrl(UmbracoContext umbracoContext, int id, Uri current, UrlProviderMode mode)
{
var node = umbracoContext.ContentCache.GetById(id);
return (node != null && node.HasValue("externalRedirectURL"))
? node.GetPropertyValue<string>("externalRedirectURL")
: null;
}
public IEnumerable<string> GetOtherUrls(UmbracoContext umbracoContext, int id, Uri current)
{
return Enumerable.Empty<string>();
}
}
However, disabling this does not address the issue.
Everything works at 7.4.2, so what's the issue with 7.5.10?
Thanks,
A
Update:
Tracked the problem down to umbracoUseDirectoryUrls being set to false in web.config. Setting this to true cleared the issue - does this imply that setting this flag to false is no longer valid?
umbracoUseDirectoryUrls set false -> 'This document is published but its url would collide with content (error)'
Following upgrade of site from 7.4.2 to 7.5.10, for all nodes except the home node, the back-end property 'Link to document' displays as:
"This document is published but its url would collide with content (error)"
The site front-end appears to behave as usual and the creation and publication of new content is not affected.
Root 'Culture and Hostnames' settings:
Culture : Inherit
Two domain / language settings:
10.100.0.132:92
en-us
10.100.0.132:9200
gd-GB
We have a custom IUrlProvider in place that allows redirection to external addresses based on a property value:
However, disabling this does not address the issue.
Everything works at 7.4.2, so what's the issue with 7.5.10?
Thanks,
A
Update: Tracked the problem down to umbracoUseDirectoryUrls being set to false in web.config. Setting this to true cleared the issue - does this imply that setting this flag to false is no longer valid?
Have a look at your UmbracoSettings.config file - This might be something that might help.
Thanks for the suggestion Paul.
We are not running with multiple root nodes.
Setting umbracoUseDirectoryUrls to true in web.cofig appears to have solved the issue.
A
If you're getting the "url would collide with content" error you could try the Url Preview package: https://our.umbraco.org/projects/backoffice-extensions/url-preview/
It will show the URLs instead of the error.
Jeroen
is working on a reply...