How can I change a route value then redirect to that route?
问题 I have a UserAccountController that takes routes like this "/{username}/{action}" . I'd like to create some functionality so that I can take a user to an account-specific page without knowing their username up front. I'd like to be able to use the URL "/your/{action}" which would catch the fact that "your" was sent as their username, get their real username (because they are logged in), and redirect them to "/their-actual-username/{action}". I could do this in each of the controller actions,