diff --git a/inc/helpers/homepage/header-components.php b/inc/helpers/homepage/header-components.php index 02588fc8..05f94644 100644 --- a/inc/helpers/homepage/header-components.php +++ b/inc/helpers/homepage/header-components.php @@ -49,8 +49,16 @@ if (!function_exists('aksrt_header_slide_current_page_type')) { * * Custom rewrite requests can retain WordPress's is_home flag, so the * explicit theme surfaces must win before the home fallback is evaluated. + * Utility rewrites (download token hand-off, go-link confirm) are error / + * hand-off surfaces and opt out entirely, like the excluded templates. */ function aksrt_header_slide_current_page_type(): string { + if (class_exists('\AKSRT\Content\Download') && (string) get_query_var(\AKSRT\Content\Download::QUERY_VAR) !== '') { + return ''; + } + if ((string) get_query_var('aksrt_go_redirect') !== '') { + return ''; + } if ((string) get_query_var('aksrt_message_view') !== '') { return 'page'; }