Copied to clipboard

Flag this post as spam?

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


  • Bendik Engebretsen 105 posts 202 karma points
    Oct 03, 2017 @ 08:14
    Bendik Engebretsen
    0

    Url modification

    A small url challenge that I wonder if someone could help me with. I have a site where basically all routing is handled normally by Umbraco. But there is one place on the site where I would like to "skip" a part of the path, because one of the nodes in the hierarchy is just a container that I don't want to be visible in the url. Here's an example: I want

    www.mysite.com/en/webshop/page-components/products/my-product/

    to look like this instead:

    www.mysite.com/en/webshop/products/my-product/

    Could someone point me in the right direction?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Oct 03, 2017 @ 08:24
  • Nick 34 posts 127 karma points
    Oct 03, 2017 @ 08:27
    Nick
    0

    Hey

    If you add the string property "umbracoUrlAlias" on your document type. You can achieve this.

    You just need to fill out the property with "en/webshop/products/my-product"

    This is just an alternative URL so the orignal Url will still be working. not sure if that what you want?

  • Bendik Engebretsen 105 posts 202 karma points
    Jun 27, 2018 @ 11:27
    Bendik Engebretsen
    0

    Thanks Nick!

    You pointed me in the right direction! I found a complete solution to my problem in another Our-thread. If anyone else is looking for this, you can find it here. The concept is creating a custom IUrlProvider.

Please Sign in or register to post replies

Write your reply to:

Draft