Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

comments: use relative URLs for comment forms.

Using full, absoltue URLs will cause testing environment to comment on
production instances, and will also break HTTPS support on
mixed-protocols sites.
  • Loading branch information...
commit f28c8b672081f5ffe2db94cb9180f562310beb05 1 parent 49f5cc1
@Flameeyes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/article.rb
View
4 app/models/article.rb
@@ -144,11 +144,11 @@ def trackback_url
end
def comment_url
- blog.url_for("comments?article_id=#{self.id}", :only_path => false)
+ blog.url_for("comments?article_id=#{self.id}", :only_path => true)
end
def preview_comment_url
- blog.url_for("comments/preview?article_id=#{self.id}", :only_path => false)
+ blog.url_for("comments/preview?article_id=#{self.id}", :only_path => true)
end
def feed_url(format)
Please sign in to comment.
Something went wrong with that request. Please try again.