How do I make the links on the site lead to the current user’s page(s)? I dont want them to get lists of every user but only themselves. I’m thinking something like this for my menu links:
How do I make the links on the site lead to the current user’s
Share
I think it’s better if you send user to “My Details” page without any parameter or route values.
The page is going to show current users data. So why to pass it like this?
Just Redirect user to “My Detail” page, and after that, when user is in that page, you can get current user using: HttpContext.CurrentUser.
Don’t put user data in route values. Instead you can get it in that page’s controller and pass it to the page.