Closed Rohit-Bera closed 2 weeks ago
Same issue here. I can't navigate to nested pages like src/admin/routes/demo/[id]/page.tsx
, the page stays in /src/admin/routes/demo/page.tsx
Hey @Rohit-Bera and @jgatto1
useParams
does work, but the issue is a bug in 2.0.0 that prevents nested pages as a whole from working. The issue has been resolved and will be part of 2.0.1, which will be released soon. In the meantime, you can get around the issue by adding this resolution in your package.json:
"resolutions": {
"@medusajs/admin-bundler": "2.0.1-snapshot-20241023094231",
"@medusajs/dashboard": "2.0.1-snapshot-20241023094231"
},
if you are using npm then it should be an override instead
Thanks @kasperkristensen it worked!
Hey @kasperkristensen, I've experienced a similar problem. Would it be worth opening a new ticket to describe what happened and what I did to fix it?
Bug report
I have implemented admin ui routes to get custom development , in that i cannot access path parameters
Describe the bug
when we are passing the path parameters in browser URL , it is not printed in the page or in the console.
System information
Medusa version (including plugins): v2 Node.js version: v20.13.1 Database: postgresql Browser (if relevant): chrome
Steps to reproduce the behavior
1) create page.tsx in the
src/admin/routes/brand/[id]/page.tsx
2) paste this code3) run the app.
Expected behavior
http://localhost:9000/app/brand/123
=> Passed ID: 123 orScreenshots
https://github.com/user-attachments/assets/6c43ce8b-6a42-476f-be87-675079645b20
Code snippets
src/admin/routes/brand/page.tsx
src/admin/brand/[id]/page.tsx