How to implement navigation redirects? #3137
Unanswered
MrVladis1av
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to implement navigation redirects? For example i do have a dir /docs which should be redirected to /docs/getting-started.
Previously i had navigation.redirect in the _dir.yml and checked for it in the middleware like that:
But now it's unclear how to implement similar logic with v3. queryCollection contains path like
/docs/.navigation
for the /docs path. At the same time queryCollectionNavigation returns overall navigation like that:, i cannot get navigation of the specific page. So what is the right way to implement redirects in v3?
I mean similar logic as here for reference: #1521
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions