Not being able to provide relative URLs in custom quick links renders SharePoint site export/import function (including content) useless. When you import "yoursite.cmp" file into a new site all customized navigation links point to the old site.
Here's the scenario:
- SP Foundation 2010 (no special customizations, updated to Dec2012 update)
- Create new wiki page or create a new view for any list
- Save the page (or the new view)
- Go to Site settings->Quick launch
- Create a new navigation link
- Specify the path to your newly created wiki (or view) [no matter how you specify it here, SP converts it into absolute url here]
- Save (links work OK here, no problem).
- Export the site (including content) to yourexportedsitename.cmp (using SP Admin interface orexport-spweb -identity {urltoyour}/sites/original -path c:\temp\original.cmp)
- Create new site under the same collection (make sure it is of the same "type" as your exported site (say, Team site) or import will not work) and give it a name (sayclonedsite
- Import yourexportedsitename.cmp using import-spweb -identity {urltoyour}/sites/clonedsite -path c:\temp\original.cmp
- Open your newly imported site in SharePoint at {urltoyour}/sites/clonedsite and check the Quick links. Customized links still point to the OLD site {urltoyour}/sites/original/SitePages/MyNewWikiPage.aspx ?????
I have tried providing paths with or without forward slashes, double dots, etc to no avail. On save, path is always converted to absolute which renders site to be unusable for cloning via export/import.
However, if you declare your customized wiki page as your home page (or the newly created view as default view for the list), then customized quick links DO WORK in the imported site????
Question for Microsoft: Why doesn't SharePoint let the user save the entered path for a custom quick link as is, WITHOUT SP interfering and saving it as an absolute URL? If left as provided imported sites will work.
Any assistance with this will be greatly appreciated
(and yes, I know you can tweak this with code or jscript, but I am talking about generic, end user functionality that does not work properly)