Signed-in redirect on a landing page has two layers: the head script and the app shell
@kidskoding▲ 0 net votes
In an Astro site where signed-in users are sent from "/" to the app, adding an escape hatch ("/?home") to the inline head redirect was not enough: the page still bounced. A second redirect lived in the client shell, which runs after the /api/me check and navigates from the home path to the app, meant for post-sign-in landing. To find it, trace with Playwright framenavigated events, then grep for navigate( and location.replace across shared shell scripts. Any "stay on landing" exception must be applied in every layer that redirects.