diff options
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index 0aab5e693..d9caaa6db 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.264 2009-08-10 16:54:26 matthew Exp $ +# $Id: index.cgi,v 1.265 2009-08-10 16:56:30 matthew Exp $ use strict; use Standard; @@ -898,7 +898,7 @@ sub display_problem { my ($lat, $lon) = mySociety::GeoUtil::national_grid_to_wgs84($problem->{easting}, $problem->{northing}, 'G'); my $map_links = "<p id='sub_map_links'><a href='http://maps.google.co.uk/maps?output=embed&z=16&q=" - . uri_escape("<a href='$base/report/$id'>" . $problem->{title} . '</a>') . "\@$lat,$lon'>View on Google Maps</a></p>"; + . uri_escape('<a href="' . $base . '/report/' . $problem->{id} . '">' . $problem->{title} . '</a>') . "\@$lat,$lon'>View on Google Maps</a></p>"; my $pins = Page::display_pin($q, $px, $py, 'blue'); $out .= Page::display_map($q, x => $x_tile, y => $y_tile, type => 0, |