diff --git a/app/models/category.rb b/app/models/category.rb index 89e9fd77430..c7740a7997a 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -194,7 +194,7 @@ SQL def topic_url if has_attribute?("topic_slug") - Topic.relative_url(topic_id, topic_slug) + Topic.relative_url(topic_id, read_attribute(:topic_slug)) else topic_only_relative_url.try(:relative_url) end