Take the 2-minute tour ×

I have a SharePoint 2010 web application "myapp.test.com" and I have extended this application to myapp-edit.test.com

I also have configured the following two alternative access mapping urls:

  • myapp.test.com (Zone: Default)
  • myapp-edit.test.com (Zone: Intranet)

I have created a list with an hyperlink column. The problem is that when I add an item to this list with url: myapp.test.com/Pages/myPage.aspx then this url gets changed to myapp-edit.test.com/Pages/myPage.aspx

How do I make it stay as myapp.test.com/Pages/myPage.aspx?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

It depends on your URL address.

When you visit the server using: myapp.test.com, all urls will have myapp.test.com as a prefix.

The same thing applies to myapp-edit.test.com

share|improve this answer
I visit the server using myapp-edit.test.com Is it possible to change it? that link is not changed? –  Agnieszka Apr 22 '13 at 11:56
Kindly note that the href in your hyper link is '/Pages/myPage.aspx' If you press F12 and select the hyperlink you will find it like: <a href="/Pages/myPage.aspx">MyPage</a> –  Mhd. Yasseen Apr 22 '13 at 12:00
yes, I see.. Thanks! –  Agnieszka Apr 22 '13 at 12:08

It seems to me that SharePoint adds the name of the server to the value in the Hyerlink column.

Say you entered: /test.com/Lists/xx/abc.com

SharePoint will convert this relative URL and add the server name as well. This value will become.


For some people (including myself), its adding the internal name rather than the external one, and I suspect that is just because I am adding it from the internal zone.

The problem is that the link is not usable from the other zone. In your case, its the internal zone, and in my case and the case of this guy, its the external site that we can't access.

share|improve this answer

Yes internally SharePoint does something. You can follow this article to Get URL value SharePoint hyperlink field. Hope this will be helpful. I already solved this issue. Provided you are using SharePoint 2010 object model.

share|improve this answer

Your Answer


