-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: automatically redirect when index is empty #437
Comments
As an example, I would like you to get a look at this feature from @nuxt/content: Which I think we should have, and be used in this feature. |
I think also that an empty WDYT @farnabaz ? |
This feature is what we use to fetch prev & next pages in bottom navigation
What do you mean by not treating as a page? We need them in navigation hierarchy. |
Cannot we use the navigation to do so? 🤔 |
We added navigation.redirect, but the UX could be better for users.
We could automatically redirect to first file in order (0., 1. or the first in order, or the first in query if no order specified).
It could be useful because I feel that using directories
index.md
for configuration will be an usual pattern, and usingindex.md
does gives an empty page that can be browser into navigation elements such as PagePrevNext component.You can easily reproduce this by browsing the last page of a directory in which the following directory has a page index.
PagePrevNext component should also be updated I think.
Maybe displaying the name of the next/previous directory when changing categories or specifying it as usual with category name + page name.
The text was updated successfully, but these errors were encountered: