Skip to content

Giving relative urls for prev/next yields unexpected results #623

@Uriziel01

Description

@Uriziel01

Bug report

When plain relative (omitting dot dash notation) urls are given inside of frontmatter prev/next blocks the resulting links are targeting some random pages not the pages user expects

Version

v10.2

Steps to reproduce

Crete page with frontmatter prev/next values like (Im using json syntax):

"prev": "author-info-box",
"next": "breadcrumb"

What is expected?

Resulting prev/next links should point to 'mydomain.com/shortcodes/author-info-box' and 'mydomain.com/shortcodes/breadcrumb' pages.

What is actually happening?

Resulting prev link is some random page ("mydomain.com/shortcodes/author" in my case) and next points to the exact page Im currently on now (which is quite nonsense on its own and certainly not correct).

Modifying the values to:

"prev": "./author-info-box",
"next": "./breadcrumb"

fixes everything and generates correct links and points to mydomain.com/shortcodes/author-info-box and mydomain.com/shortcodes/breadcrumb

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