aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2014-08-08 02:10:04 +0100
committerDave Whiteland <dave@mysociety.org>2014-08-08 02:10:04 +0100
commit0425b661609da36364c1e4228b9599119c3a991b (patch)
tree9f447e1550c1357ba18ac2ddf0db806360d16be7
parent46cb8408438b9f6c42b3526e6ebbba24076bb999 (diff)
add explicit BASE_URL to URLs in nav and header, works in admin
-rw-r--r--templates/web/makemyisland/footer.html12
-rw-r--r--templates/web/makemyisland/header_logo.html2
2 files changed, 7 insertions, 7 deletions
diff --git a/templates/web/makemyisland/footer.html b/templates/web/makemyisland/footer.html
index 40e5407ce..d2687a3a1 100644
--- a/templates/web/makemyisland/footer.html
+++ b/templates/web/makemyisland/footer.html
@@ -11,17 +11,17 @@
<div class="nav-wrapper-2">
<div id="main-nav" role="navigation">
<ul id="main-menu">
- <li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
+ <li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/"[% END %] class="report-a-problem-btn"
>[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
- %]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
+ %]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/my"[% END
%]>[% loc("Your reports") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[%
- %]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="/reports"[% END
+ %]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/reports"[% END
%]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]></li>[%
- %]<li><[% IF c.req.uri.path == '/alert' %]span[% ELSE %]a href="/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END
+ %]<li><[% IF c.req.uri.path == '/alert' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END
%]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
- %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
+ %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/faq"[% END
%]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
- %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
+ %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="[% c.config.BASE_URL %]/privacy"[% END
%]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
</ul>
</div>
diff --git a/templates/web/makemyisland/header_logo.html b/templates/web/makemyisland/header_logo.html
index 8595ab693..cbe5c13fc 100644
--- a/templates/web/makemyisland/header_logo.html
+++ b/templates/web/makemyisland/header_logo.html
@@ -1,2 +1,2 @@
<a href="http://www.undp.org/" id="united-nations-dp-logo">UNDP</a>
- <a href="/" id="site-logo">[% c.cobrand.site_title | html %]</a>
+ <a href="[% c.config.BASE_URL %]/" id="site-logo">[% c.cobrand.site_title | html %]</a>