-
navbar question
I'm preparing to (finally) turn VaultWiki live on my site, and I'm having an issue with the navbar.
I would like to force VaultWiki to use absolute URLs instead of relative ones [e.g., http://www.domain.ext/forum/showwiki.php vs. showwiki.php], but I don't see a way to do that. Is it possible?
Thanks,
Steven
-
VaultWiki was designed to use absolute URLs for all /showwiki.php links. I can't think of a situation where it would created a relative URL. Is there a particular link in your navbar you are having issues with?
-
-
To my understanding, the entire navbar typically uses relative links. How did you accomplish absolute URLs in the rest of the navbar? I would use the same method here if you can.
-
The vBa CMPS addon somehow changes the relative URLs in the navbar template to absolutes.
I solved the problem by prepending /forum/ to these links in the vault_general_links template:
Code:
<if condition="$links['forum_link']">
<tr>
<td class="vbmenu_option"<if condition="$links['main_page']"> style="font-size: 70%"</if>><a href="/forum/forumdisplay.php?$session[sessionurl]f=$topinfo[forumid]&redirect=no"><if condition="$links['main_page']">-- </if>$topinfo[title] ($vbphrase[vault_list])</a></td>
</tr>
</if>
<if condition="$links['create_link']">
<tr>
<td class="vbmenu_option"><a href="/forum/newthread.php?$session[sessionurl]f=$topinfo[forumid]" title="$vbphrase[vault_new_article]" rel="nofollow">$vbphrase[vault_new_article]</a></td>
</tr>
</if>
It works. :)