Skip to content

Commit 058de62

Browse files
committed
chore: add basename to Router
1 parent c07ffad commit 058de62

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/ecommerce-jewellery-store/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function App() {
2121
<CartProvider>
2222
<AdminProvider>
2323
<CategoriesProvider>
24-
<Router>
24+
<Router basename="/kendo-react/ecommerce-jewellery-store">
2525
<Header />
2626
<SizedParent>
2727
<Routes>
@@ -33,7 +33,6 @@ function App() {
3333
<Route path="/category" element={<DetailedCategory />} />
3434
<Route path="/product/:id" element={<ProductDetails />} />
3535
<Route path="/shoppingcart" element={<ShoppingCartList />} />
36-
<Route path="/contacts" element={<Contacts />} />
3736
</Routes>
3837
</SizedParent>
3938
<Footer />

examples/ecommerce-jewellery-store/src/data/items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const items = [
99
},
1010
{
1111
"text": "Contacts",
12-
"url": "/contacts"
12+
"url": "contacts"
1313
}
1414
];
1515

0 commit comments

Comments
 (0)