diff options
author | francis <francis> | 2008-03-12 16:07:13 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-12 16:07:13 +0000 |
commit | 938306b88df6c6734566ea7995bf92da9862efc4 (patch) | |
tree | fb33992562f3f1cff0f83e00207d7472b844f074 /app/helpers/link_to_helper.rb | |
parent | facda1bfffb9d91da6a2f2e22b2345590e452f96 (diff) |
Make users all have their own URL, rather than sharing if they have the same name.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r-- | app/helpers/link_to_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index e05aebc0b..a68bdd5d4 100644 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -5,7 +5,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: link_to_helper.rb,v 1.22 2008-03-07 23:13:38 francis Exp $ +# $Id: link_to_helper.rb,v 1.23 2008-03-12 16:07:13 francis Exp $ module LinkToHelper @@ -47,7 +47,7 @@ module LinkToHelper # Users def user_url(user) - return show_user_url(:url_name => user.url_name, :only_path => true) + "#user-" + user.id.to_s + return show_user_url(:url_name => user.url_name, :only_path => true) end def user_link(user) link_to h(user.name), user_url(user) |