diff --git a/front/apps/web/src/pages/_app.tsx b/front/apps/web/src/pages/_app.tsx index 9bf3e833..4f2d07b1 100755 --- a/front/apps/web/src/pages/_app.tsx +++ b/front/apps/web/src/pages/_app.tsx @@ -266,6 +266,11 @@ App.getInitialProps = async (ctx: AppContext) => { ctx.ctx.res!.end(); return {} as any; } + if (info!.setupStatus === SetupStep.Done && ctx.router.route === "/setup") { + ctx.ctx.res!.writeHead(307, { Location: "/" }); + ctx.ctx.res!.end(); + return {} as any; + } } catch (e) { console.error("SSR error, disabling it."); }