Skip to content

Regression with nav item direct linking to blog post in 4.40.3 #5949

@perpil

Description

@perpil

Context

In a recent change, directly linking to a blog post from the nav exhibits strange behavior. The nav link works, but that specific blog post is missing the metadata sidebar and it is excluded from the blog index.

Bug description

On my site, I link to a specific blog entry under a nav entry called Mission. This normally works fine, but in insiders 9.2.7+4.40.3 I get an error: A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site. The nav link works, and it shows the blog entry, but it is missing the blog metadata like date and author. Other posts that aren't linked in the nav show up in the blog index, but the mission.md one is missing.

Related links

Reproduction

9.2.7+insiders.4.40.3-blog-entry-in-nav-not-working.zip

Steps to reproduce

  1. mkdocs serve
  2. See the error A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site.
  3. Click the Mission nav item, note it does not have metadata
  4. Click the Blog nav item, note there is no entry for the mission blog post.
  5. Click continue reading and note the post called Entry has metadata.

Browser

No response

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