Quantcast
Channel: SharePoint Diary
Viewing all articles
Browse latest Browse all 1058

Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx)

$
0
0
If you want to quickly check SharePoint user profile properties, You can get it from user information list or by simply clicking on user name hyperlinks from metadata fields such as: Created by. Usually, user profile page points to:
  • http://sharepointsite.com/_layouts/userdisp.aspx?ID=123
When clicked on user name hyperlink, will get redirected to My Site profile page (E.g. http://mysite/person.aspx?accountname) if the user has a my site profile created.

If the user has My site profile created, then the UserDisp.aspx page redirects to his/her My site profile page automatically.

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 user's Mysite profile page and get the simple User Information.
  • Add:Force=True parameter to the above URL. So, it will be:
    http://portal.ad2012.loc/_layouts/userdisp.aspx?Force=True&ID=20
What if You want to avoid profile redirect permanently?
Behind the scenes, there is a 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 you can simply disable the feature: "MySite" To avoid profile redirect.

Viewing all articles
Browse latest Browse all 1058

Trending Articles