SharePoint My Site Link Back to the Portal Site
By default, a SharePoint 2007 (MOSS) My Site page does not contain a link back to the portal it serves. This leaves users confused about how to get back to the main portal other than using the Back button in their browsers.
There is a simple fix for this. From the My Site page, choose Site Actions/Site Settings. Under Site Collection Administration click on Portal Site Connection. Click on the radio button next to Connect to portal site and enter the URL and name for the portal site. (Example: http://server/portal/ and Portal Name). Click OK to save. (See this link at Microsoft Support for how to accomplish this programmatically.)
Now, every user will see the portal name (in the example above, Portal Name) in the breadcrumbs on the top left of the My Site page. Problem solved.
It might be possible to accomplish this task for all users programmatically. E.g. in a site feature receiver you can call this code:
using (SPSite mySite = (SPSite)properties.Feature.Parent)
{
mySite.PortalName = "Portal";
mySite.PortalUrl = "http://portal.example.com";
}
This feature needs to be run when all mysites are created using Stapler/Staplee features. A good introduction on how to do this can be found here.
Hope this helps.
Yes there is a way. you need to access the site collection settings for the root. goto http://mysite/_layouts/settings.aspx and set the Portal Site Collection. This set it for all existing and new sub site collections in my farm.