Skip to content

Fix redundant nested product route - #17

Open
itsAka12 wants to merge 1 commit into
UdrCrafts:mainfrom
itsAka12:fix-product-route
Open

Fix redundant nested product route#17
itsAka12 wants to merge 1 commit into
UdrCrafts:mainfrom
itsAka12:fix-product-route

Conversation

@itsAka12

@itsAka12 itsAka12 commented Sep 9, 2025

Copy link
Copy Markdown

What’s Changed

  • Updated product route in App.js to use a flat definition.
  • Now /product/:productId directly renders the Product component.

Why

  • Previous nested route required , causing broken navigation.
  • This simplifies routing and ensures product details work correctly.

Testing

  • /product/1 renders Product page ✅
  • /product no longer shows a blank page ✅

Closes #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant