Copied to clipboard

Flag this post as spam?

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


  • Jose Badia 13 posts 156 karma points
    Jul 14, 2017 @ 19:02
    Jose Badia
    0

    Renamed URL (umbracoUrlName) node's template being shown in wrong paths

    I have a "Contact Us" page at the root with a umbracoUrlName of "contact"; www.mysite.xyz/contact works fine.

    The problem is that when "/contact" is added after any valid Url on the site (e.g., "www.mysite.com/about-us/contact"), instead of showing a 404 error, the site shows the Contact template along with the content of the incorrect page (in this example, the site shows my contact form along with common fields populated with About Us page content).

    We're baffled by this unexpected behavior. We're currently on version 7.6.0.

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Jul 14, 2017 @ 19:54
    Nicholas Westby
    100

    This is due to a feature of Umbraco called "alternative templates". See here: https://our.umbraco.org/forum/templates-partial-views-and-macros/77715-umbraco-7-template-rending-as-web-pages#comment-248526

    In short, you can disable this feature in a few ways (the link above has details).

  • Jose Badia 13 posts 156 karma points
    Jul 14, 2017 @ 20:09
    Jose Badia
    0

    Thank you very much, Nicholas.

Please Sign in or register to post replies

Write your reply to:

Draft