Links in list o links in a template


  • I'm using SharePoint Foundation 2010 and SharePoint Designer and experimenting with creating a template with content that can be used to create new sites within other SharePoint 2010 environments.

    I've created some lists of links and the links are pointing to various pages within the site. When I create new sites based on my experimental templates:

    1) In some of my new sites the links within the list are relative in the new site, so 


    correctly becomes


    2) In some of my new sites the links within the list are absolute in the new site, so 


    incorrectly stays as 


    I can't work out what I've done differently in the sites that I've used to create the templates.  I think I've created the list, and the links within the list, in the same way on each site.

    Just to be clear, I'd like scenario 1) when I create a new site based on the template - that links within my list of links are in effect relative and point to the new site, not the site in which the template was created.

    Any help appreciated, thanks.

    Monday, October 29, 2012 4:46 PM


All replies

  • Hi,

    How do you create the links in the original site? Are you using relative URLs? That means you can use /doc-lib/mypage.aspx as the URL for the link.

    After you created the links in the Links list, you can check whether the relative links have changed to the correct link by editing the link. After creating the site template, you should also check whether the links are stored in the Links list correctly. There is no such a setting to modify the links from relative to absolute. Try to create the site at the same level of a site collection.


    Entan Ming

    Entan Ming

    TechNet Community Support

    Wednesday, October 31, 2012 12:23 PM
  • I sorted out the problem.

    Links to pages were being correctly changed, but links to document libraries weren't.

    Thanks for your help.

    Wednesday, November 07, 2012 3:04 PM