Copied to clipboard

Flag this post as spam?

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


  • Angus 34 posts 128 karma points
    Mar 07, 2017 @ 16:41
    Angus
    0

    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?

  • Paul Wright (suedeapple) 277 posts 704 karma points
    Mar 08, 2017 @ 11:14
    Paul Wright (suedeapple)
    0

    Have a look at your UmbracoSettings.config file - This might be something that might help.

        <!-- this will ensure that urls are unique when running with multiple root nodes -->
    <useDomainPrefixes>true</useDomainPrefixes>
    
  • Angus 34 posts 128 karma points
    Mar 08, 2017 @ 13:08
    Angus
    0

    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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 02, 2017 @ 08:37
    Jeroen Breuer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft