aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-02-22 02:10:14 +0000
committerfrancis <francis>2008-02-22 02:10:14 +0000
commit8365f632e9a545772bdee4b37b8b7e73584efda8 (patch)
tree595ed2cccb1b631a39049fac48a72e950f7c658c /app/helpers/link_to_helper.rb
parent44c36549ace767f392270e34340601d51e5a81b1 (diff)
Fix link to user page from admin page.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 3e5294fbc..0f003f913 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.14 2008-02-06 12:20:37 francis Exp $
+# $Id: link_to_helper.rb,v 1.15 2008-02-22 02:10:14 francis Exp $
module LinkToHelper
@@ -47,7 +47,7 @@ module LinkToHelper
# Users
def user_url(user)
- return show_user_url(:simple_name => simplify_url_part(user.name))
+ return show_user_url(:simple_name => simplify_url_part(user.name), :only_path => true)
end
def user_link(user)
link_to h(user.name), user_url(user)