1
0
Fork 0

fix(flappy): stop deriving returnTo from x-invoke-path

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jason Fraley 2026-09-09 00:03:18 -04:00
parent 25975db23f
commit 285de3ac14

View file

@ -18,8 +18,7 @@ export default async function FlappyPage() {
const { user } = await payload.auth({ headers, canSetHeaders: false });
if (!user) {
const pathname = headers.get("x-invoke-path") || "/flappy";
redirect(`/login?returnTo=${encodeURIComponent(pathname)}`);
redirect(`/login?returnTo=${encodeURIComponent("/minigames/flappy")}`);
}
const profileRes = await payload.find({