Copied to clipboard

Flag this post as spam?

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


  • Vasily 7 posts 27 karma points
    Mar 06, 2016 @ 20:48
    Vasily
    0

    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

  • Dallas 132 posts 404 karma points
    Mar 07, 2016 @ 04:48
    Dallas
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft