Skip to content

Commit

Permalink
chore: add basename to Router
Browse files Browse the repository at this point in the history
  • Loading branch information
bptodorova committed Nov 16, 2024
1 parent c07ffad commit 058de62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/ecommerce-jewellery-store/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function App() {
<CartProvider>
<AdminProvider>
<CategoriesProvider>
<Router>
<Router basename="/kendo-react/ecommerce-jewellery-store">
<Header />
<SizedParent>
<Routes>
Expand All @@ -33,7 +33,6 @@ function App() {
<Route path="/category" element={<DetailedCategory />} />
<Route path="/product/:id" element={<ProductDetails />} />
<Route path="/shoppingcart" element={<ShoppingCartList />} />
<Route path="/contacts" element={<Contacts />} />
</Routes>
</SizedParent>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion examples/ecommerce-jewellery-store/src/data/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const items = [
},
{
"text": "Contacts",
"url": "/contacts"
"url": "contacts"
}
];

Expand Down

0 comments on commit 058de62

Please sign in to comment.