mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:07:53 +08:00
FIX: Linking to a category via hashtag had a broken URL.
This commit is contained in:
@ -686,7 +686,7 @@ describe Category do
|
||||
fab!(:category) { Fabricate(:category_with_definition, name: 'cats') }
|
||||
|
||||
it "includes the id in the URL" do
|
||||
expect(category.url_with_id).to eq("/c/#{category.id}-cats")
|
||||
expect(category.url_with_id).to eq("/c/cats/#{category.id}")
|
||||
end
|
||||
|
||||
context "child category" do
|
||||
|
Reference in New Issue
Block a user