Subject: | Header template can construct wrong URL for maypole.css |
Date: | Sun, 14 Oct 2007 17:40:13 +0100 |
To: | bug-Maypole [...] rt.cpan.org |
From: | Ben Hutchings <ben [...] decadent.org.uk> |
maypole.css is static content which may not live in the root of the
site. The header template uses config.uri_base but not base in
constructing its URL. If I understand correctly, config.uri_base is not
needed due to the <base> element, but base is.
--- maypole.orig/lib/Maypole/templates/factory/header
+++ maypole/lib/Maypole/templates/factory/header
@@ -10,7 +10,7 @@
</title>
<meta http-equiv="Content-Type" content="text/html; charset=[% request.document_encoding %]" />
<base href="[% config.uri_base%]"/>
- <link title="Maypole" href="[% config.uri_base %]/maypole.css" type="text/css" rel="stylesheet" />
+ <link title="Maypole" href="[% base %]/maypole.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="content">
-- END --
Ben.
--
Ben Hutchings
Lowery's Law:
If it jams, force it. If it breaks, it needed replacing anyway.
Message body not shown because it is not plain text.