diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a14f7486..941b7580 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -254,6 +254,13 @@ if (iframe === 'true') $ae_loc.iframe = true; else if (iframe === 'false') $ae_loc.iframe = false; + // ae_hide_menu=true — suppress the AE system bar when embedding in Novi or + // other host pages with their own navigation. Applies even for trusted_access + // users who would otherwise always see the menu in iframe mode. + if (data.url.searchParams.get('ae_hide_menu') === 'true') { + $ae_loc.sys_menu.hide = true; + } + // Theme URL params — ?theme=AE_Firefly_SteelBlue&theme_mode=dark // Applied once on load, then silently removed from the URL (no history entry). const url_theme = data.url.searchParams.get('theme');