diff options
author | francis <francis> | 2008-02-27 13:59:51 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-27 13:59:51 +0000 |
commit | e2a47fa6cb017eb8672faa8778fff8bfd8a7b686 (patch) | |
tree | 72c9abe08e005f216f67db45ddc8eb006556374b /app/helpers/link_to_helper.rb | |
parent | 7473845559cd1be213fcc7929acdb3c45f697fb6 (diff) |
Use names in URLs of requests.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r-- | app/helpers/link_to_helper.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 8d4a1baca..6d57ed353 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.18 2008-02-27 12:18:28 francis Exp $ +# $Id: link_to_helper.rb,v 1.19 2008-02-27 13:59:52 francis Exp $ module LinkToHelper @@ -13,7 +13,7 @@ module LinkToHelper # Requests def request_url(info_request) - return show_request_url(:id => info_request, :only_path => true) + return show_request_url(:url_title => info_request.url_title, :only_path => true) end def request_link(info_request) link_to h(info_request.title), request_url(info_request) @@ -74,11 +74,7 @@ module LinkToHelper end - def info_request_link(info_request) - link_to h(info_request.title), show_request_url(:id => info_request) - end - - + # Admin pages def admin_url(relative_path) admin_url_prefix = MySociety::Config.get("ADMIN_BASE_URL", "/admin/") return admin_url_prefix + relative_path |