mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Permalinks should redirect to category URL including the ID
This is a temporary fix. Urls for third-level categories should function without the id. Once that is fixed, this change can be reverted
This commit is contained in:
@@ -62,7 +62,7 @@ describe Permalink do
|
||||
|
||||
it "returns a category url when category_id is set" do
|
||||
permalink.category_id = category.id
|
||||
expect(target_url).to eq(category.url)
|
||||
expect(target_url).to eq("#{category.url}/#{category.id}")
|
||||
end
|
||||
|
||||
it "returns nil when category_id is set but category is not found" do
|
||||
|
||||
Reference in New Issue
Block a user