Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx)
Suppose you want to check SharePoint user profile properties quickly. In that case, You can get it from the user information list or by simply clicking on user name hyperlinks from metadata fields such as: Created by. Usually, the user profile page points to:
- https://sharepointsite.com/_layouts/userdisp.aspx?ID=123
When clicked on the user name hyperlink, it will get redirected to the My Site profile page (E.g., https://mysite/person.aspx?accountname) if the user has my site profile created.
If the user has the My site profile created, then the UserDisp.aspx page automatically redirects to their My site profile page.
Is there any way to get the basic version of userdisp.aspx, instead of redirecting them to the MySite profile of that person when someone clicks on such links? Well, Here is a nifty trick to stop redirecting to the user’s Mysite profile page and get the simple User Information.
- Add Force=True parameter to the above URL. So, it will be:
https://portal.ad2012.loc/_layouts/userdisp.aspx?Force=True&ID=20
What if You want to avoid profile redirect permanently?
Behind the scenes, there is an OOTB user control called “MySiteRedirection.ascx” User control tied to a delegate control “DelctlProfileRedirection” on userdisp.aspx page that does this re-direction. You can either replace this delegate control or simply disable the feature: “MySite” To avoid profile redirect.