diff options
author | Altin Ukshini <altin.ukshini@gmail.com> | 2017-02-02 14:54:32 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-02-03 13:41:04 +0000 |
commit | 05581029fa4e416c9dd0715c4f1575e5029f4616 (patch) | |
tree | 894d91dbf0de0807e9ad7733abf2afcba274f7a5 /perllib/FixMyStreet | |
parent | 64e43ba8d5d4223cdd0eb29bea289201a490a4de (diff) |
Call base_url_with_lang in base_url_for_report.
This function is used e.g. in report lists, and if you were using the
multiple language subdomain functionality, those links could take you
to a different language.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index aad91429a..56e365050 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -209,14 +209,14 @@ sub base_url { FixMyStreet->config('BASE_URL') } =head2 base_url_for_report Return the base url for a report (might be different in a two-tier county, but -most of the time will be same as base_url). Report may be an object, or a -hashref. +most of the time will be same as base_url_with_lang). Report may be an object, +or a hashref. =cut sub base_url_for_report { my ( $self, $report ) = @_; - return $self->base_url; + return $self->base_url_with_lang; } =head2 base_host |