diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/public_body_controller.rb | 6 | ||||
-rw-r--r-- | app/controllers/request_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/user_controller.rb | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index ad29c0b35..19bb22f67 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -1,16 +1,16 @@ -# app/controllers/body_controller.rb: +# app/controllers/public_body_controller.rb: # Show information about a public body. # # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body_controller.rb,v 1.4 2009-07-14 23:30:37 francis Exp $ +# $Id: public_body_controller.rb,v 1.5 2009-09-02 14:10:37 francis Exp $ class PublicBodyController < ApplicationController # XXX tidy this up with better error messages, and a more standard infrastructure for the redirect to canonical URL def show if MySociety::Format.simplify_url_part(params[:url_name]) != params[:url_name] - redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name]) + redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name]), :status => :moved_permanently return end diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 98c4c5be4..007548506 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.170 2009-08-20 11:05:24 francis Exp $ +# $Id: request_controller.rb,v 1.171 2009-09-02 14:10:37 francis Exp $ class RequestController < ApplicationController @@ -376,7 +376,7 @@ class RequestController < ApplicationController redirect_to outgoing_message_url(@info_request_event.outgoing_message) else # XXX maybe there are better URLs for some events than this - redirect_to request_url(@info_request_event.info_request) + redirect_to request_url(@info_request_event.info_request), :status => :moved_permanently end end diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 1c0bef5b9..c3b2efc03 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,13 +4,13 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_controller.rb,v 1.68 2009-08-19 23:20:39 francis Exp $ +# $Id: user_controller.rb,v 1.69 2009-09-02 14:10:38 francis Exp $ class UserController < ApplicationController # Show page about a user def show if MySociety::Format.simplify_url_part(params[:url_name], 32) != params[:url_name] - redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 32) + redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 32), :status => :moved_permanently return end |