aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-01 13:35:17 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-04 16:26:56 +0100
commit88933aa8df0f748dce8188cde99b6199ae070864 (patch)
tree11a5ad35d1ab675a18ec73b752d35f8540414cc4 /perllib/FixMyStreet/Cobrand/Default.pm
parent45aaf63033e7d4d24ba570f7460746fe28f9f59f (diff)
Make sure map JS works through an admin proxy.
Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 76d73d96e..5c7ce10c4 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -133,7 +133,10 @@ Base URL for the admin interface.
=cut
-sub admin_base_url { FixMyStreet->config('ADMIN_BASE_URL') || '' }
+sub admin_base_url {
+ my $self = shift;
+ return FixMyStreet->config('ADMIN_BASE_URL') || $self->base_url . "/admin";
+}
=head2 base_url