MySite Redirection and MOSS Service Pack 2
MOSS 2007 SP2 has a bug fix that it seems a number of people don’t want. It enables redirection from the userdisp.aspx page in a local site collection to the MySite portal page even when a portal site connection is not configured.
Thankfully, a quick feature scoped at the farm level can remedy the situation. The following feature disables profile redirection and also hides the “My Site” global navigation link. Note that this feature is scoped at the Farm level, making it applicable to all web applications/site collections within the farm.
The feature
feature.xml
<?xml version="1.0" encoding="utf-8"?>
<Feature Id="6768ca75-6afb-4b70-80e6-7964abf4fb68"
Title="Disable MySites Redirection"
Description="Disables MySites redirection to person.aspx (pre-SP2 behavior) and removes the My Site global navigation link"
Version="12.0.0.0"
Hidden="FALSE"
Scope="Farm"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml"/>
</ElementManifests>
</Feature>
elements.xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Control Id="GlobalSiteLink1" Sequence="50" ControlSrc="" />
<Control Id="ProfileRedirection" Sequence="50" ControlSrc=""/>
</Elements>