From da0ea3a29d75c70ddcd16f128aa26765ffd13612 Mon Sep 17 00:00:00 2001 From: Gabriel Augusto Almeida Date: Mon, 6 Apr 2020 14:15:59 -0400 Subject: [PATCH] tests: avoid ERR_TOO_MANY_REDIRECTS on frontend tests under Windows If Etherpad is hosted on Windows the frontend test URI needs to be /tests/frontend/index.html (docs say .../frontend/), otherwise there is this error: ERR_TOO_MANY_REDIRECTS. Fixes #3804. --- src/node/hooks/express/tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 514390962..efc03fa48 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -58,7 +58,7 @@ exports.expressCreateServer = function (hook_name, args, cb) { }); args.app.get('/tests/frontend', function (req, res) { - res.redirect('/tests/frontend/'); + res.redirect('/tests/frontend/index.html'); }); }