Thursday, June 5, 2008

Add to my Links issue

An interesting issue came up some days back. Whenever we would try to add any list or doc lib to my links webpart on my site using the Add to my links function, it redirects to a page which populates the wrong list/doc lib URL in the textbox which is uneditable. The link that so gets created is wrong and is invalid. To give an idea, we have multiple webapplications as xyz, xyz-div1, xyz-div2........ Now whenever I try to add a list of xyz-div2 to my links using "Add to my Links" it stripped off the -div2 from the url. The url seemed something like - http://xyz/sites/team1/xyz/lists/emp/allitems.aspx instead of http://xyz-div2/sites/team1/xyz/lists/emp/allitems.aspx

On closer analysis of the url box of the internet explorer I found out that there is an intermediate portal api which sharepoint before going to the next page. When I googled that api with that particular command parameter I got a hit to msdn here http://msdn.microsoft.com/en-us/library/ms868609.aspx

I then took a look at the portal connection of the site collection and there it was. As part of the site provisioning process in the organization, a site is always connected to a portal site as http://xyz to act as a common home for all employees. We will see how we work this out so that add to my links work, but at least its good to know why it was happening.