diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2013-12-11 17:47:02 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2013-12-11 17:47:02 +0000 |
commit | cbfe33690c64f6a301e77971abb9b762318bb9be (patch) | |
tree | ca48d4b2258355727cbb49e102120cf365e2d76f /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
parent | 7628dc67ad06a96c2ee18accc8c8b4f4109b1cae (diff) |
Rationalise trailing slashes from admin_base_url
Remove from admin_base_url (which wraps config vars like
{ADMIN_,}BASE_URL) and add to places in code which aren't
expecting it.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index b00daab40..603f425f7 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -278,7 +278,7 @@ sub send_reports { $h{query} = $row->postcode; $h{url} = $email_base_url . $row->url; - $h{admin_url} = $cobrand->admin_base_url . 'report_edit/' . $row->id; + $h{admin_url} = $cobrand->admin_base_url . '/report_edit/' . $row->id; $h{phone_line} = $h{phone} ? _('Phone:') . " $h{phone}\n\n" : ''; if ($row->photo) { $h{has_photo} = _("This web page also contains a photo of the problem, provided by the user.") . "\n\n"; |