diff --git a/app/server/lib/FlexServer.ts b/app/server/lib/FlexServer.ts index aa3f55945e..b2b5886954 100644 --- a/app/server/lib/FlexServer.ts +++ b/app/server/lib/FlexServer.ts @@ -599,14 +599,7 @@ export class FlexServer implements GristServer { */ public addBootPage() { if (this._check('boot')) { return; } - /* The regex above captures routes like - /boot - /boot/ - /boot/KEY/ - /boot/KEY - /boot// - */ - this.app.get(/\/boot(\/(.*\/?)?)?$/, async (req, res) => { + this.app.get('/boot(/*)?', async (req, res) => { // Doing a good redirect is actually pretty subtle and we might // get it wrong, so just say /boot got moved. res.send('The /boot/KEY page is now /admin?boot-key=KEY');