Package.json file
{
"name": "my-medusa-store",
"version": "0.0.1",
"description": "A starter for Medusa projects.",
"author": "Medusa (https://medusajs.com)",
"license": "MIT",
"keywords": [
"sqlite",
"postgres",
"typescript",
"ecommerce",
"headless",
"medusa"
],
"scripts": {
"build": "medusa build",
"seed": "medusa exec ./src/scripts/seed.ts",
"start": "medusa start",
"dev": "medusa develop",
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
},
"dependencies": {
"@medusajs/admin-sdk": "2.13.1",
"@medusajs/cli": "2.13.1",
"@medusajs/framework": "2.13.1",
"@medusajs/medusa": "2.13.1"
},
"devDependencies": {
"@medusajs/test-utils": "2.13.1",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/node": "^20.12.11",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"jest": "^29.7.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.14",
"yalc": "^1.0.0-pre.53"
},
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@10.20.0"
}
Node.js version
v20.19.2
Database and its version
postgres 17
Operating system name and version
Windows 11 latest
Browser name
Firefox
What happended?
When searching for a Product Type in the Medusa Admin search and clicking the result, the admin redirects to an incorrect URL.
The generated URL does not include the /settings prefix, which results in navigating to a non-existing route.
Steps to Reproduce
- Open Medusa Admin
- Use the global search
- Search for a Product Type
- Click the search result
Expected behavior
The admin should navigate to:
http://localhost:9000/app/settings/product-types/ptyp_01KJYZC2Q4CQDQACWYN02XPXC1
Actual behavior
The admin navigates to:
http://localhost:9000/app/product-types/ptyp_01KJYZC2Q4CQDQACWYN02XPXC1
Link to reproduction repo
https://github.com/biocodersin/medusa-bug-report
Package.json file
{ "name": "my-medusa-store", "version": "0.0.1", "description": "A starter for Medusa projects.", "author": "Medusa (https://medusajs.com)", "license": "MIT", "keywords": [ "sqlite", "postgres", "typescript", "ecommerce", "headless", "medusa" ], "scripts": { "build": "medusa build", "seed": "medusa exec ./src/scripts/seed.ts", "start": "medusa start", "dev": "medusa develop", "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit", "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit", "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit" }, "dependencies": { "@medusajs/admin-sdk": "2.13.1", "@medusajs/cli": "2.13.1", "@medusajs/framework": "2.13.1", "@medusajs/medusa": "2.13.1" }, "devDependencies": { "@medusajs/test-utils": "2.13.1", "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "@types/jest": "^29.5.13", "@types/node": "^20.12.11", "@types/react": "^18.3.2", "@types/react-dom": "^18.2.25", "jest": "^29.7.0", "prop-types": "^15.8.1", "react": "^18.3.1", "react-dom": "^18.3.1", "ts-node": "^10.9.2", "typescript": "^5.6.2", "vite": "^5.4.14", "yalc": "^1.0.0-pre.53" }, "engines": { "node": ">=20" }, "packageManager": "pnpm@10.20.0" }Node.js version
v20.19.2
Database and its version
postgres 17
Operating system name and version
Windows 11 latest
Browser name
Firefox
What happended?
When searching for a Product Type in the Medusa Admin search and clicking the result, the admin redirects to an incorrect URL.
The generated URL does not include the /settings prefix, which results in navigating to a non-existing route.
Steps to Reproduce
Expected behavior
The admin should navigate to:
http://localhost:9000/app/settings/product-types/ptyp_01KJYZC2Q4CQDQACWYN02XPXC1
Actual behavior
The admin navigates to:
http://localhost:9000/app/product-types/ptyp_01KJYZC2Q4CQDQACWYN02XPXC1
Link to reproduction repo
https://github.com/biocodersin/medusa-bug-report