From a8b927da91526f85dfd1964477828216e0c5d5a2 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 25 Feb 2015 20:46:45 +0530 Subject: [PATCH] FEATURE: add canonical tag to category latest page --- app/controllers/list_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 45a2d1aaad7..55bdac73f1b 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -82,6 +82,7 @@ class ListController < ApplicationController end define_method("category_#{filter}") do + canonical_url "#{Discourse.base_url}#{@category.url}" self.send(filter, { category: @category.id }) end @@ -90,6 +91,7 @@ class ListController < ApplicationController end define_method("parent_category_category_#{filter}") do + canonical_url "#{Discourse.base_url}#{@category.url}" self.send(filter, { category: @category.id }) end