Routing: domain.com/username to go to Member profile page
Hi guys.
I have Umbraco 7 based website - a small community of bakers. Currently I have url domain.com/baker/[username] which goes to profile page of [username].
I would like to shortne url to be domain.com/[username] to go to profile page.
Currently in the Umbraco tree I have node "Baker" that has 1 url parameter "username".
Routing: domain.com/username to go to Member profile page
Hi guys.
I have Umbraco 7 based website - a small community of bakers. Currently I have url domain.com/baker/[username] which goes to profile page of [username].
I would like to shortne url to be domain.com/[username] to go to profile page.
Currently in the Umbraco tree I have node "Baker" that has 1 url parameter "username".
Any ideas how can I achieve my goal
Hi Vasily
You can do this using a custom ContentFinder and UrlProvider. You can use these to override the Umbraco default routing.
The custom ContentFinder is used to handle requests for domain.com/[username] and select the correct content node (based on the username).
The custom UrlProvider can be used to create the short url (though you may not need this).
This article explains how it works with examples.
Dallas
is working on a reply...