diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-05 17:41:36 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-06 14:41:05 +0000 |
commit | 8feaa44c55f11eced01ce916e51515d763fd194e (patch) | |
tree | 7dfb5fcf452fd58da2a8aecf4a18a8251dadb083 /perllib | |
parent | fba69ae6c1ed5952a1d45b532868917dee66e4fb (diff) |
[UK Councils] Make sure TfL link works everywhere.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UKCouncils.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index 7336e60ca..60cecd0bb 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -261,7 +261,9 @@ sub base_url_for_report { sub relative_url_for_report { my ( $self, $report ) = @_; - return $self->owns_problem($report) ? "" : FixMyStreet->config('BASE_URL'); + return "" if $self->owns_problem($report); + return FixMyStreet::Cobrand::TfL->base_url if $report->cobrand eq 'tfl'; + return FixMyStreet->config('BASE_URL'); } sub admin_allow_user { |