From 05581029fa4e416c9dd0715c4f1575e5029f4616 Mon Sep 17 00:00:00 2001 From: Altin Ukshini Date: Thu, 2 Feb 2017 14:54:32 +0100 Subject: 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. --- perllib/FixMyStreet/Cobrand/Default.pm | 6 +++--- 1 file 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 -- cgit v1.2.3