-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
NextJS Page Router - navigation item is not matching if url has query params #4645
Comments
It works for me when I try it in our Vite example, as changing the URL to something like But the issue might be something different. Unfortunately I can't access the CodeSandbox link you provided - you probably have to make it public?
If one of the nested pages is the currently active page its parent items should start open when the page loads. |
@apedroferreira Thanks for checking. I think the issue is specific to NextJS+Page Router combination. It worked for NextJS + App Router for me and Vite for you. Please try by cloning https://github.com/theajr/toolpad-issue. |
You're right, I can confirm, thanks for finding the issue! I should've checked the Next.js Pages Router example. Working on a fix in #4657 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @theajr How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Steps:
PS. If I have nested routing, how to make sure the menu open state to true by default?
Current behavior
Expected behavior
Context
No response
Your environment
npx @mui/envinfo
Search keywords: pattern, navigation
The text was updated successfully, but these errors were encountered: