From 2466a1476ebe98464f98c62c49ab2a54e1494826 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 2 Sep 2009 14:10:37 +0000 Subject: Do permanent redirects so old URLs aren't used. --- app/controllers/user_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/user_controller.rb') 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 -- cgit v1.2.3