mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FIX: should allow non-ASCII slugs for category pages.
This commit is contained in:
@ -368,6 +368,19 @@ RSpec.describe ListController do
|
||||
end
|
||||
end
|
||||
|
||||
context 'with encoded slug in the category' do
|
||||
let(:category) { Fabricate(:category, slug: "தமிழ்") }
|
||||
|
||||
before do
|
||||
SiteSetting.slug_generation_method = "encoded"
|
||||
end
|
||||
|
||||
it "succeeds" do
|
||||
get "/c/#{category.slug}/#{category.id}/l/latest"
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with a link that has a parent slug, slug and id in its path' do
|
||||
let(:child_category) { Fabricate(:category_with_definition, parent_category: category) }
|
||||
|
||||
|
Reference in New Issue
Block a user