diff options
author | Duncan Parkes <duncan@fury.ukcod.org.uk> | 2011-02-18 23:01:53 +0000 |
---|---|---|
committer | Duncan Parkes <duncan@fury.ukcod.org.uk> | 2011-02-18 23:01:53 +0000 |
commit | d55adde2905b8c89fc93862d7954c4547168e9ff (patch) | |
tree | 54b2b6c6a9d22607e133047f3563ded7ac5df5f5 | |
parent | a01bad958bc9889f23c77aa8c35223378c3150fc (diff) |
Link to the postcode url from the map page.
-rwxr-xr-x | web/index.cgi | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 003b51734..9d2fe45af 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -937,6 +937,13 @@ sub display_location { ); my $pc_h = ent($q->param('pc') || ''); + my $rss_url; + if ($pc_h) { + $rss_url = "/rss/pc/$pc_h"; + } else { + $rss_url = "/rss/l/$short_lat,$short_lon"; + } + my %vars = ( 'map' => FixMyStreet::Map::display_map($q, latitude => $latitude, longitude => $longitude, @@ -946,7 +953,11 @@ sub display_location { ), map_end => FixMyStreet::Map::display_map_end(1), url_home => Cobrand::url($cobrand, '/', $q), - url_rss => Cobrand::url($cobrand, NewURL($q, -retain => 1, -url=> "/rss/l/$short_lat,$short_lon", pc => undef, x => undef, y => undef, lat => undef, lon => undef ), $q), + url_rss => Cobrand::url( + $cobrand, + NewURL($q, -retain => 1, -url=> $rss_url, + pc => undef, x => undef, y => undef, lat=> undef, lon => undef ), + $q), url_email => Cobrand::url($cobrand, NewURL($q, -retain => 1, pc => undef, lat => $short_lat, lon => $short_lon, -url=>'/alert', feed=>"local:$short_lat:$short_lon"), $q), url_skip => $url_skip, email_me => _('Email me new local problems'), |