Access Keys:
Skip to content (Access Key - 0)

Relative Linking Menu Bar and Space Admin


This forum has now moved. These topics have been left as a read-only archive. Please create all new topics in the Community space.


I am creating an Intranet that contains multiple spaces. Each department is its own space, and the menu bar navigation that runs thru the entire site links to each of these spaces. I use relative linking, because I have Test and Production servers that I push the changes thru. This is a snippet of the code I use:

{menu}Departments
{menuitem}{menulink:custom|link=./display/CORP/Administration}Administration{menulink}{menuitem}
{menuitem}{menulink:custom|link=./display/CORP/HR}Human Resources{menulink}{menuitem}
{menuitem}{menulink:custom|link=./display/IT/Information+Technology}Information Technology{menulink}{menuitem}
{menuitem}{menulink:custom|link=./display/MKTG/Marketing}Marketing{menulink}{menuitem}
{menu}

This works perfectly in all spaces, until I go to the Space Admin pages or try to Edit/Add a page. This is because the link structure changes from /display/SpaceName/pageName to just /pages/pageName. So when it hits this link, it moves back an extra directory and breaks the link.

It seems like there should be a simple solution for this, but I've tried several things and cannot make it work. I am open to any suggestions!

I am using Theme Builder 3.3.3, Confluence 2.10, and I greatly appreciate your help!



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence