8000 "Home" title using "navigation.instant" feature · Issue #4924 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

"Home" title using "navigation.instant" feature #4924

@Belface

Description

@Belface

Context

No response

Bug description

Hello
when I navigate back to the index page of my website, my title in the top left corner of the page (div class="md-header__title") is changed into "Home" label. If I remove "navigation.instant" feature from mkdocs.yml, the issue disappears.

Related links

Reproduction

example.zip

Steps to reproduce

  1. Display the index page --> Title = site_name (from mkdocs.yml) --> OK
  2. Display a page from navigation menu --> Title = site_name --> OK
  3. Scroll on this page --> Title = name of the page (also from mkdocs.yml/nav:) --> OK
  4. Click the logo on left top of page (without scrolling back to top)
  5. The index page is displaying --> Title = "Home" --> NOK

If I replace the last 2 steps by :
4. Scrolling back to top --> Title = site_name (from mkdocs.yml) --> OK
5. Click the logo, the index page is displaying --> site_name (from mkdocs.yml) --> OK

Browser

Firefox

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0