A plugin for Strapi Headless CMS that provides navigation / menu builder feature with their possibility to control the audience and different output structure renderers like (flat, tree and RFR - ready for handling by Redux First Router)
MIT License
308
stars
57
forks
source link
Using `/` as the URL doesn't work as expected. #366
Let's say I have some page where I want it to be available at /.
The output path show / which is expected, then I try to query my navigation using GraphQL:
query {
renderNavigation(
navigationIdOrSlug: "main-navigation"
locale: "fr"
path: "/"
) {
id
title
path
related {
id
attributes {
__typename
... on Page {
Title
}
}
}
}
}
But it returns nothing
After some investigation I found that I actually have to write path: "//" instead of path: "/"
It doesn't end there! Let's add a nested route to it
As you can see the expected path is /nested, but again, it doesn't work, the actual path that work is ///nested
Let's say I have some page where I want it to be available at
/
.The output path show
/
which is expected, then I try to query my navigation using GraphQL:But it returns nothing
After some investigation I found that I actually have to write
path: "//"
instead ofpath: "/"
It doesn't end there! Let's add a nested route to it
As you can see the expected path is
/nested
, but again, it doesn't work, the actual path that work is///nested