[OGDev] <base href=...">

Kake L Pugh kake at earth.li
Fri Mar 30 18:38:28 BST 2007


I just rationalised up the links in the navbar a bit - previously we'd
had a mix of full URLs
(e.g. http://london.randomness.org.uk/wiki.cgi?action=rc) and partial
URLs (e.g. newpage.cgi).  This worked OK, but made it difficult to
INCLUDE navbar.tt in your own add-on scripts.  What I did for now was make
them all be full URLs.

However, it might be better to do this by using <base href="[%
script_url %]"> and then using partial URLs everywhere.  Can anyone
give me a quick rundown on the pros and cons of each approach, and
which they think would be best for OpenGuides?  It's the edge cases
I'm worried about.

Kake



More information about the OpenGuides-Dev mailing list