tests: Preserve query string when redirecting

pull/5050/head
Richard Hansen 2021-05-09 17:46:16 -04:00
parent 9cba96e5e9
commit 573da027e5
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
});
args.app.get('/tests/frontend', (req, res) => {
res.redirect('./frontend/index.html');
res.redirect(['./frontend/index.html', ...req.url.split('?').slice(1)].join('?'));
});
return cb();