aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/comment_controller.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/controllers/comment_controller.rb
parentba15c9b78dca182f74281d7354e77942860259e7 (diff)
Redirects should be done with absolute urls
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r--app/controllers/comment_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb
index 9b8e0f799..ed249d6cc 100644
--- a/app/controllers/comment_controller.rb
+++ b/app/controllers/comment_controller.rb
@@ -86,7 +86,7 @@ class CommentController < ApplicationController
@info_request.save!
# we don't use comment_url here, as then you don't see the flash at top of page
- redirect_to request_path(@info_request)
+ redirect_to request_url(@info_request)
else
# do nothing - as "authenticated?" has done the redirect to signin page for us
end