2
Vote

Add HomeController action override to remove username from route

description

This would mean that ~/profile would like to the currently logged on user's profile:

public ActionResult Index(string returnUrl, string toolName)
{
return Index(Services.WorkContext.CurrentUser, returnUrl, toolName);
}

comments

philpeace wrote Nov 20, 2012 at 4:05 PM

That should of course have been:
    public ActionResult Index(string returnUrl, string toolName)
    {
        return Index(Services.WorkContext.CurrentUser.UserName, returnUrl, toolName);
    }