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
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.
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?
This blog might help you: https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/
Jeroen
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?
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.
is working on a reply...