Skip to content

Resolve sidebar logo for all sidebars, not just the first#14355

Draft
cderv wants to merge 1 commit intomainfrom
fix/issue-14353
Draft

Resolve sidebar logo for all sidebars, not just the first#14355
cderv wants to merge 1 commit intomainfrom
fix/issue-14353

Conversation

@cderv
Copy link
Copy Markdown
Collaborator

@cderv cderv commented Apr 13, 2026

The logo resolution logic (resolveLogo + logoAddLeadingSlashes) only ran for sidebars[0]. Other sidebars kept raw string logo values, but the EJS template expects { light: { path }, dark: { path } } objects since the dark logo support was added in #12996 (v1.8.15). This caused empty <a class="sidebar-logo-link"> anchors with no <img> for any sidebar after the first.

Fix

Loop the resolution over all sidebar entries so each sidebar's logo is properly transformed. This enables per-sidebar logos in both multi-sidebar and hybrid navigation layouts.

Closes #14353, closes #13565

The logo resolution logic (resolveLogo + logoAddLeadingSlashes) only ran
for sidebars[0]. Other sidebars kept raw string logo values, but the EJS
template expects { light: { path }, dark: { path } } objects since the
dark logo support was added in #12996. This caused empty <a> anchors
with no <img> for any sidebar after the first.

Loop the resolution over all sidebar entries so each sidebar's logo is
properly transformed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar logo omitted in multi-sidebar website in 1.9.37 Support setting sidebar logo in Hybrid navigation (when multiple sidebar)

1 participant