I would also go for the UrlProvider and ContentFInder route.
With the UrlProvider you would skip out the section-1-2 part and with the content finder you would search at the right location for it to get the actuall node.
I have done this to add stuff into an url and skip it when finding content and it works quite well.
Overwriting URL to documents
Hello!
I have created following documents structure:
So I have following URL: /articles/section-1/section-1-2/article-1-1
But I need that URL looks like: /articles/article-1-1
How can I achieve this in Umbraco?
My aim is to decrease URL nesting.
Thanks.
You can write your own content finder... https://our.umbraco.org/Documentation/Reference/Routing/Request-Pipeline/IContentFinder
Thanks for advice, but I need that "Link to document" would be setted like I had described above. I need something like umbracoUrlName.
I believe you can accomplish what you want by implementing your own IContentFinder (incoming request) and IUrlProvider (outgoing url).
http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
Hi Denis,
I would also go for the UrlProvider and ContentFInder route.
With the UrlProvider you would skip out the section-1-2 part and with the content finder you would search at the right location for it to get the actuall node.
I have done this to add stuff into an url and skip it when finding content and it works quite well.
Regards David
is working on a reply...