Sharepoint is changing the url of items in a Links list
When I add an item to a Links list, SP changes the url automatically and it causes the link to not work. I think this is related to AAM, but i'm not sure. We have two different company intranet enviroments, one on SP 2k3 that were moving away from and the new one on 2k7. Here are the details: We have a 2k3 instance set up at the address http://cponet.mycompany.com it's two servers load balanced that houses our company intranet. Were working on retiring it. We have a WSS 2k7 instance set up that is going to be our new company intranet once we move everything over. I didnt set this up, but the address is at simply http://cponet or http://cponet.mycompany.ad As of right now, we have a redirect on cponet.mycompany.com/default.aspx that points to cponet.mycompany.ad/default.aspx The new front page is the only one that is up and running on the new server. all links on it point back to the old instance, until we move everything over. Here is the problem. On the page, we have a few Links web parts that have company info, but the links are not working. When I add a new item with the address http://cponet.mycompany.com/HR/default.aspx for example, sharepoint automatically changes it to http://cponet.mycompany.ad/hr/default.aspx and that link doesnt work. I think this has to do with AAM, but I cant see how that could be doing this. Here are the two entries that pertain to this web app: INTERNAL ZONE PUBLIC URL http://cponet default http://cponet http://cponet.mycompany.ad custom http://cponet.mycompany.ad All the links in CEWPs work fine. it's only links that are added to list items. Why in the world would SP change a url (from .com to .ad) automatically. Especially when there is nothing in AAM that even mentions .com the two instances are not connected in any way except the redirect and links pointing back and forth. if anyone has any ideas, id love to hear them. thanks
May 14th, 2010 2:40pm

John, Thanks for the reply. I'm logged into the domain mycompany.ad the 2k7 instance is at cponet.mycompany.ad When I try to add an item to a Link list on the front page of the 2k7 instance (http://cponet.mycompany.ad/default.aspx) I'm adding the link pointing back to the old instance (http://cponet.mycompany.com/HR/default.aspx for example) and sharepoint immediatly changes the .com to .ad which causes the link not to work. I just received a call from an emplyee who is working on a blog site that's also set up on 2k7 instance. she is having the same problem trying to add a link in a blog posting. the blog address is http://cponet/sites/blogname/default.aspx the mycompany.ad was left out. When she adds a link, http://cponet.mycompany.com/..... it changes it to http://cponet/..... and that of course doesnt work. this is now causing a huge issue. Any ideas?
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 5:43pm

I finally figured it out so I thought i'd come back and post the resolution. This web app is one of three running in the farm. the person setting it up used port 80, and because port 80 was already used by another web app, he set a host header. The problem is that he used the host header "cponet". IIS captured everything that began with "cponet", including the links to the other server (cponet.mycompany.com) and assumed they were part of this web app. INTERNAL ZONE PUBLIC URL http://cponet default http://cponet http://cponet.mycompany.ad custom http://cponet.mycompany.ad The AAM had cponet as the default zone. because of the host header, it captured everything that began with cponet and converted it to cponet.mycompany.ad. I changed the host header to cponet.mycompany.ad and then removed the cponet mapping and made the other one the default. Viola! works like a charm. John, thanks for your help in understanding how this works.
May 19th, 2010 3:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics