stimulusreflex / stimulus_reflex

Build reactive applications with the Rails tooling you already know and love.

Home Page:https://docs.stimulusreflex.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken Next Page Link on Welcome Page of Docs

aviflombaum opened this issue · comments

Bug Report

The next page link on the first page of the documentation, Welcome, links to the Welcome page (itself), as opposed to the correct next page, which would be Setup

To Reproduce

Go to Welcome and see what happens on the Next Page click.

Expected behavior

Going to the next page, Setup.

Screenshots or reproduction

CleanShot 2023-05-25 at 10 08 19

I wish I knew more about vitepress so I could figure out how to fix it but looked around and nothing obvious jumped out.

<3

Hey @aviflombaum, thank you for reporting this!

Now that you mentioned it, I think I also looked into this in the past and haven't found a simple solution. It probably has to do with the different sections the pages are in, but I'm also not sure.

It might be worth to update vitepress and see if it resolves itself.

Turns out this related to the how Vitepress translates the file hello-world/index.md to the path /hello-world/.

Referencing /hello-world/ instead of /hello-world/index in the Vitepress config resolves this issue. See 3fca175