Skip to content

Bug Report: Active child page click navigates to parent #389

@DevTwilight

Description

@DevTwilight

Context

I’m using Zensical to document my Godot plugin. I have a nested “Getting Started” section with multiple child pages (Installation, Prerequisites, Quick Start). I’m not sure if this behavior is a bug or something I’m doing wrong, so I’d appreciate guidance or a workaround.

Bug description

Clicking a child page (e.g., getting-started/installation.md) opens the page correctly. However, if I click the same active page again, it navigates to the parent folder (getting-started/) instead of staying on the page.

I expected that clicking an already active page would leave the user on the same URL, without jumping to the parent.

Related links

Explicit navigation

Reproduction

I’m not attaching a .zip reproduction file.
But I am attaching my current zensical.toml configuration for reference.

[project]
site_name = "godot-admob documentation"
site_description = "A Godot plugin that provides a unified GDScript interface for integrating Google Mobile Ads SDK on Android and iOS."
site_author = "godot-sdk-integrations"
copyright = "Copyright © 2026 godot-sdk-integrations"

repo_url = "https://github.com/godot-sdk-integrations/godot-admob"
repo_name = "godot-admob"

extra_css = ["stylesheets/extra.css"]
use_directory_urls = false

nav = [
    { "Home" = "index.md" },
    { "Getting Started" = [
        { "Installation" = "getting-started/installation.md" },
        { "Prerequisites" = "getting-started/prerequisites.md" },
        { "Quick Start" = "getting-started/quick-start.md" }
    ] },
    { "License" = "license.md" }
]

[project.theme]
language = "en"
favicon = "images/icon.png"
features = ["navigation.tabs", "navigation.tabs.sticky"]

[project.markdown_extensions.admonition]

[project.markdown_extensions.toc]
toc_depth = 0

[project.extra]
generator = false

Steps to reproduce

  1. Create a nested navigation section in zensical.toml with a parent folder and multiple child pages.
  2. Start the local Zensical server (zensical serve) and open the site in a browser.
  3. Click a child page (e.g., getting-started/installation.md) — it opens correctly.
  4. Click the same active child page again.
  5. Observe that it navigates to the parent folder instead of staying on the page.

Browser

Chrome

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions