mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:21:11 +08:00
FIX: permalink normalization not applied at constraint
implement permalink import for lithium
This commit is contained in:
@ -19,6 +19,12 @@ describe PermalinksController do
|
||||
|
||||
expect(response).to redirect_to('/topic/100')
|
||||
expect(response.status).to eq(301)
|
||||
|
||||
SiteSetting.permalink_normalizations = "/(.*)\\?.*/\\1X"
|
||||
|
||||
get :show, url: permalink.url, test: "hello"
|
||||
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
|
||||
it 'return 404 if permalink record does not exist' do
|
||||
|
Reference in New Issue
Block a user