FIX: canonical urls for category and topic pages was wrong when deployed to subfolder

This commit is contained in:
Neil Lalonde
2015-10-01 12:24:07 -04:00
parent c7b344b00f
commit dd0a7107a8
3 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ class ListController < ApplicationController
end
define_method("category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}"
canonical_url "#{Discourse.base_url_no_prefix}#{@category.url}"
self.send(filter, category: @category.id)
end
@ -93,7 +93,7 @@ class ListController < ApplicationController
end
define_method("parent_category_category_#{filter}") do
canonical_url "#{Discourse.base_url}#{@category.url}"
canonical_url "#{Discourse.base_url_no_prefix}#{@category.url}"
self.send(filter, category: @category.id)
end