mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3956 from tgxworld/fix_clashing_slug
FIX: Clashing category slug.
This commit is contained in:
@@ -49,9 +49,8 @@ module PrettyText
|
||||
end
|
||||
|
||||
def category_hashtag_lookup(category_slug)
|
||||
if category_slug
|
||||
category = Category.find_by_slug(category_slug)
|
||||
return ['category', category.url_with_id] if category
|
||||
if category = Category.query_from_hashtag_slug(category_slug)
|
||||
['category', category.url_with_id]
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user