Friday, March 09, 2007

Relative links in WSS 3.0 Quick Launch

Been working on WSS 3.0 recently and discovered the not so MOSSY part of it. I created a subsite within the site collection and noticed something about the Quick Launch. Adding links into the quick launch is not a problem. The problem was when you wanted to save it as a site template and reuse it somewhere else.

E.g. I have a site http://servername/division/departmentA. I've done that site and have links within the site to point to specific lists. e.g. "/division/departmentA/lists/Issues."

The problem was if I saved this template and tried to create a new site. The Quick Launch links would be persistent which is "/division/departmentA/lists/Issues". So how do I get it to point to my new site I created.

As pointed out by Rai Umair (the legend!), remove the starting slash! The working link entered in the link textbox should be "lists/Issues" (Note: no slash and link pointing from site only, without the inverted commas). Now after you press OK and come back to the page you will see that the link will change to look like the original one but it still works in new sites based of the Site’s Site Template.

One of the many things that drive you insane till midnight and someone fixes it at 1am! Try it!

1 comment:

Surendar Prakasam said...

Hi,

Me too tried the same in MOSS2007 but getting an exception of System.Security.SecurityException, still the current user has the complete admin permissions.