FIX: permalink normalization not applied at constraint

implement permalink import for lithium
This commit is contained in:
Sam
2015-07-22 13:40:45 +10:00
parent 90b85e5b23
commit 3a54923116
4 changed files with 41 additions and 22 deletions

View File

@ -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