diff --git a/app/models/category.rb b/app/models/category.rb index 931f09e82e4..88ede172dd3 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -34,7 +34,7 @@ class Category < ActiveRecord::Base end def topic_url - topic.try(:relative_url) + topic_only_relative_url.try(:relative_url) end def ensure_slug