diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-13 19:32:50 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 12:22:23 +1100 |
commit | 5dce6d1465efa82a33a07706363221b39e8ca029 (patch) | |
tree | 241b9e138eb4089d5f6bb12c83d79d4951fe49c2 /app/helpers/link_to_helper.rb | |
parent | ba15c9b78dca182f74281d7354e77942860259e7 (diff) |
Redirects should be done with absolute urls
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-x | app/helpers/link_to_helper.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index aee67d93f..f32ab9b64 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -10,9 +10,12 @@ module LinkToHelper # Links to various models # Requests - def request_path(info_request, extra_params={}) - params = {:url_title => info_request.url_title, :only_path => true} - return show_request_url(params.merge(extra_params)) + def request_url(info_request, options = {}) + show_request_url({:url_title => info_request.url_title}.merge(options)) + end + + def request_path(info_request, options = {}) + request_url(info_request, {:only_path => true}.merge(options)) end def request_link(info_request, cls=nil ) |