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
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.
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.
TechNet Community Support