This commit is contained in:
Maieul BOYER 2025-11-24 17:00:23 +01:00 committed by Maix0
parent 0358a6025b
commit deaf58dfce
7 changed files with 19 additions and 17 deletions

View file

@ -195,6 +195,7 @@ export async function handleRoute() {
if (user === null && !route_handler.special_args.bypass_auth)
return navigateTo(`/login?returnTo=${encodeURIComponent(window.location.pathname)}`)
const app = document.getElementById('app')!;
document.dispatchEvent(new CustomEvent('ft:pageChange' as any, {} as any) as any);
let ret = await executeRouteHandler(route_handler, window.location.pathname, args)
app.innerHTML = ret.html;
if (ret.postInsert) {