diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-17 18:31:19 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-17 18:31:19 +0000 |
commit | c36da985b93fb563c57ba29829eaf6bae3b6bb12 (patch) | |
tree | d44967ae9a3b5703ed0c9fb5966380ae765d1e2f /app/controllers/public_body_controller.rb | |
parent | 9a9e17974068854b94732d0a7214b6d055cdf1a9 (diff) |
Redirect /local/TAG to /body/list/TAG for Alex
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 1ca82e463..5a591878f 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -93,5 +93,11 @@ class PublicBodyController < ApplicationController cache_in_squid end + + # Used so URLs like /local/islington work, for use e.g. writing to a local paper. + def list_redirect + @tag = params[:tag] + redirect_to list_public_bodies_url(:tag => @tag) + end end |