Skip to content

Section that is nested under a page takes file path instead of URL path #2368

Open
@asimpletune

Description

@asimpletune

Bug Report

Note: more info from zola discourse page

Consider the following directory structure for the rest of the bug report.

EDIT: this is fixed in #2369

# The following files
/content/posts/2013-06-02_my-vacation/index.md
/content/posts/2013-06-02_my-vacation/comments/_index.md

Environment

Zola version: 0.17.2

Expected Behavior

Tell us what should have happened.

The URL path for comments should be:

/posts/my-vacation/comments

Current Behavior

Tell us what happens instead of the expected behavior. If you are seeing an error, please include the full error message and stack trace. You can get the stacktrace of a panic by adding RUST_BACKTRACE=1 when running a zola command.

It's currently this:

/posts/2013-06-02_my-vacation/comments

Step to reproduce

Please provide the steps to reproduce the issue.
If the issue is hard to reproduce, please provide a sample repository or sample that triggers the bug.

  1. Create a page with a dated assets directory (i.e. /contents/posts/2013-06-02_my-vacation/index.md)
  2. Create a section as a subdirectory of the page from step 1
  3. Navigate to the "comments" section in the browser and you will observe the expected vs actual

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions