diff --git a/src/lib/app.ts b/src/lib/app.ts index 2d240488e8..d6a456a799 100644 --- a/src/lib/app.ts +++ b/src/lib/app.ts @@ -65,6 +65,11 @@ export default async function getApp( app.use(compression()); app.use(cookieParser()); + app.use((req, res, next) => { + req.url = req.url.replace(/\/+/g, '/'); + next(); + }); + app.use( `${baseUriPath}/api/admin/features-batch`, express.json({ strict: false, limit: '500kB' }),