diff options
| author | Gareth Rees <gareth@mysociety.org> | 2015-06-29 14:57:05 +0100 |
|---|---|---|
| committer | Gareth Rees <gareth@mysociety.org> | 2015-06-29 14:57:05 +0100 |
| commit | 4ef28e12ca3fd93dc39bbd7148a07f19acf915c1 (patch) | |
| tree | 630fcd7f5920d0554da3b99149b2504c17aa6aff | |
| parent | 61adb11da502a85d3b81c5e240a10cedcc92421f (diff) | |
Use named route to generate update track URL
| -rw-r--r-- | app/views/widgets/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/widgets/show.html.erb b/app/views/widgets/show.html.erb index 76133b8cb..2ba19b472 100644 --- a/app/views/widgets/show.html.erb +++ b/app/views/widgets/show.html.erb @@ -25,11 +25,11 @@ <%= _('This is your request') %> </div> <% elsif @existing_track %> - <a href="<%= url_for :controller => 'track', :action => 'update', :track_id => @existing_track.id, :track_medium => "delete", :r => request.fullpath %>"> + <%= link_to update_url(:track_id => @existing_track.id, :track_medium => "delete", :r => request.fullpath) do %> <div class="alaveteli-widget__button alaveteli-widget__button--down"> <%= _('You are tracking this request') %> </div> - </a> + <% end %> <% elsif @tracking_cookie %> <%= link_to track_request_url(:url_title => @info_request.url_title, :feed => 'track') do %> <div class="alaveteli-widget__button alaveteli-widget__button--down"> |
