Skip to content
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

[Document Driven] Support navigation.redirect in _dir.yml #1521

Closed
Atinux opened this issue Sep 14, 2022 — with Volta.net · 3 comments · Fixed by #1545
Closed

[Document Driven] Support navigation.redirect in _dir.yml #1521

Atinux opened this issue Sep 14, 2022 — with Volta.net · 3 comments · Fixed by #1545
Assignees
Labels
enhancement New feature or request

Comments

Copy link
Member

Atinux commented Sep 14, 2022

I guess could be added around here: https://github.com/nuxt/content/blob/main/src/runtime/plugins/documentDriven.ts#L226

WDYT @farnabaz?

@Atinux Atinux added the enhancement New feature or request label Sep 14, 2022 — with Volta.net
@farnabaz
Copy link
Member

How do you think it should work? Does it apply only to the exact route of the directory or all the descendants?

Copy link
Member Author

Atinux commented Sep 15, 2022

It should apply to the exact route of the directory. This will avoid having to create an empty index.md with redirect in front-matter but directly leveraging _dir.yml to specify the redirect.

Copy link
Member Author

Atinux commented Sep 20, 2022

I think we should also support external redirects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants