Commit ed6c7d2f authored by Christophe Benz's avatar Christophe Benz
Browse files

Merge branch '798-fix-redirection-with-latest-release-code' into 'master'

Keep queryString when redirecting to latest release code

See merge request !22
parents 2e6c5927 17016429
Pipeline #204194 passed with stages
in 3 minutes and 35 seconds
......@@ -35,7 +35,8 @@
)
const data = await response.json()
if (response.redirected && data.dataset.code) {
this.redirect(302, `/${provider}/${data.dataset.code}`)
const queryString = stringify(query, { addQueryPrefix: true })
this.redirect(302, `/${provider}/${data.dataset.code}${queryString}`)
}
if (response.status !== 200) {
return this.error(response.status, data.message)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment