aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-13 19:32:50 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-15 12:22:23 +1100
commit5dce6d1465efa82a33a07706363221b39e8ca029 (patch)
tree241b9e138eb4089d5f6bb12c83d79d4951fe49c2 /app/helpers/link_to_helper.rb
parentba15c9b78dca182f74281d7354e77942860259e7 (diff)
Redirects should be done with absolute urls
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-xapp/helpers/link_to_helper.rb9
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 )