diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/admin.rhtml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index 9f45eba93..b856632d5 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -11,12 +11,8 @@ <body> <p><b>FOIFA admin interface:</b> -<% # This is evil. We have to use ../../blah relative URLs so it still works - # when proxied over HTTPS from secure.mysociety.org - which it has to be as - # it is our admin interface and is protected by valuable passwords. - url_prefix = ('../' * (request.request_uri.split('/').size - 3)) -%> -<%= link_to 'Public bodies', url_prefix + 'body/list' %> +<% admin_url_prefix = MySociety::Config.get("ADMIN_BASE_URL", "/admin/") %> +<%= link_to 'Public bodies', admin_url_prefix + 'body/list' %> </p> <p style="color: green"><%= flash[:notice] %></p> |