From 5ccbd1eb5cba6066a522e9faac739006616f2797 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Thu, 23 Jul 2026 17:03:09 +0200 Subject: [PATCH] [web] Suppress skip-to-content link on pages without a navbar (#35670) * Suppress skip-to-content link on pages without a navbar * Add main content as target area for the skip link on the library page GitOrigin-RevId: a47d7bbc283b648e47db93648d8fcae6ae12ea5a --- services/web/app/views/layout-base.pug | 2 +- services/web/app/views/project/list-react.pug | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/views/layout-base.pug b/services/web/app/views/layout-base.pug index 8691b39969..781df76a62 100644 --- a/services/web/app/views/layout-base.pug +++ b/services/web/app/views/layout-base.pug @@ -115,7 +115,7 @@ html( defer=deferScripts ) - if typeof suppressSkipToContent == 'undefined' + if suppressSkipToContent === false || (typeof suppressSkipToContent == 'undefined' && typeof suppressNavbar == 'undefined') a(class='skip-to-content' href='#main-content') #{translate('skip_to_content')} block body diff --git a/services/web/app/views/project/list-react.pug b/services/web/app/views/project/list-react.pug index d3e9cf1ccc..4b245abbd4 100644 --- a/services/web/app/views/project/list-react.pug +++ b/services/web/app/views/project/list-react.pug @@ -6,6 +6,7 @@ block entrypointVar block vars - const suppressNavContentLinks = true - const suppressNavbar = true + - const suppressSkipToContent = false - const suppressFooter = true - const suppressPugCookieBanner = true - isWebsiteRedesign = true