aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-02 14:10:37 +0000
committerfrancis <francis>2009-09-02 14:10:37 +0000
commit2466a1476ebe98464f98c62c49ab2a54e1494826 (patch)
tree8feeed650095db97b14cefed8f93f214f66f498e /app/controllers/user_controller.rb
parent53ff71145e158af164928b43a7b32830ee49c41f (diff)
Do permanent redirects so old URLs aren't used.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb4
1 files changed, 2 insertions, 2 deletions
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