diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-13 17:35:47 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 12:22:23 +1100 |
commit | 448dce2ce597937bb7af006065076c85d11d95ff (patch) | |
tree | c59df307c46e35f6514265f97b6f92457227d22b /app/controllers/track_controller.rb | |
parent | 8bae996d578fd18af7f8490b01924fe4718628f0 (diff) |
Redirects should be done with absolute urls
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index 5b22f3795..15da7f327 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -74,7 +74,7 @@ class TrackController < ApplicationController return atom_feed_internal if params[:feed] == 'feed' if self.track_set - redirect_to user_path(@track_user) + redirect_to user_url(@track_user) end end @@ -188,7 +188,7 @@ class TrackController < ApplicationController # track_thing.created_at = Time.now() # as created_at is used to limit the alerts to start with # track_thing.save! # flash[:notice] = "You are now tracking " + track_thing.params[:list_description] + " by email daily" - # redirect_to user_path(track_thing.tracking_user) + # redirect_to user_url(track_thing.tracking_user) else raise "new medium not handled " + new_medium end |