Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi, I'm trying to set up the Menu. But facing some issues.

Inside the strapi, it looks nested but in the API endpoint, it shows as a separate item. Also, it holds data with a key "parent"
Is it supposed to be inside the items of the wrapper right? Or am I doing something wrong?

In the endpoint, it's not nested at all.

Here is the API response I'm getting. https://gist.github.com/mcnaveen/6de3d4ffd3cb78f285353b3a4ee6d4cb

Even though I tried to pass the type params as TREE, FLAT all look the same.

image

You must be logged in to vote

Replies: 1 comment

Comment options

I cannot reproduce this issue with wrappers. Can you please double check if you're calling it properly? I see response similar to FLAT as part of your Gist.

http://localhost:1337/api/navigation/render/main-navigation?type=TREE

http://localhost:1337/api/navigation/render/main-navigation?type=FLAT

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.