diff --git a/server/objects/RequestCtx.ts b/server/objects/RequestCtx.ts index a4ee2e1..7f767b2 100644 --- a/server/objects/RequestCtx.ts +++ b/server/objects/RequestCtx.ts @@ -37,12 +37,12 @@ export default class RequestCtx { const controllerName = controller ?? this.controllerName; if (action === "index") { if (controllerName === "home") { - return this.res.redirect(302, `/`); + return this.res.redirect(`/`, 302); } else { - return this.res.redirect(302, `/${controllerName}`); + return this.res.redirect(`/${controllerName}`, 302); } } else { - return this.res.redirect(302, `/${controllerName}/${action}`); + return this.res.redirect(`/${controllerName}/${action}`, 302); } }