Copied to clipboard

Flag this post as spam?

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


  • Ron G 41 posts 137 karma points
    Dec 22, 2015 @ 22:11
    Ron G
    0

    Remove Node From URL

    Is there a way to create sub nodes and have the parent's node not in the URL?

    Example:

    ROOT
      └ Parent
          └ Child 1
          └ Child 2
    

    Instead of the URL path being:

    /parent/child-1

    /parent/child-2

    ... it would be:

    /child-1

    /child-2

    Can this be done with a urlrewrite or IUrlProvider?

    Thank you!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Dec 22, 2015 @ 22:37
    Dennis Aaen
    0

    Hi Ron,

    One way you could solve this is by using the "umbracoUrlAlias" property alias to allow the page to be accessible with a custom URL.

    Here is some old documentation, but still valid. https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias

    I am sure that this can be done in a rewrite rule maybe this article can help you a step further. http://24days.in/umbraco/2014/redirect-rules/

    Another thing that could maybe be worth to have a look at is the Hybrid framework, where you will find some great code examples.https://our.umbraco.org/projects/developer-tools/hybrid-framework-for-umbraco-v7

    You can also see a video about the Hybrid framework from uHangout https://www.youtube.com/watch?v=Enni9r0whCE

    Hope this helps,

    /Dennis

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies