aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-13 17:35:47 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-15 12:22:23 +1100
commit448dce2ce597937bb7af006065076c85d11d95ff (patch)
treec59df307c46e35f6514265f97b6f92457227d22b /app/helpers/link_to_helper.rb
parent8bae996d578fd18af7f8490b01924fe4718628f0 (diff)
Redirects should be done with absolute urls
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-xapp/helpers/link_to_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 7bbab3b24..6682af0c4 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -108,8 +108,12 @@ module LinkToHelper
end
# Users
+ def user_url(user, options = {})
+ show_user_url(options.merge(:url_name => user.url_name))
+ end
+
def user_path(user)
- return show_user_url(:url_name => user.url_name, :only_path => true)
+ user_url(user, :only_path => true)
end
def user_link(user, cls=nil)