]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/header
set base to allow relative urls to work without leading slash.
[maypole.git] / templates / factory / header
index 8712c85b096ac5a00d583f0e43d144a9897db52c..6b706efa2c9c120c03969078f51f7c83fd4e716b 100644 (file)
@@ -4,11 +4,14 @@
     <head>
         <title>
             [%
-                config.application_name ||
+              title || config.application_name ||
                 "A poorly configured Maypole application"
             %]
         </title>
-        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+        <meta http-equiv="Content-Type" content="text/html; charset=[% 
+           request.document_encoding
+       %]"/>
+       <base href="[% config.uri_base%]"/>
         <link title="Maypole" href="/maypole.css" type="text/css"
             rel="stylesheet"/>
    </head>