mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-25 09:14:34 +01:00
fix urls
This commit is contained in:
@@ -9,12 +9,16 @@ import { BrowserRouter } from 'react-router-dom';
|
||||
|
||||
|
||||
const queryClient = new QueryClient()
|
||||
const parsedData = window.location.pathname.split("/");
|
||||
let domain = parsedData[1];
|
||||
|
||||
|
||||
export default function Wrapper(props: any) {
|
||||
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Provider store={store}>
|
||||
<BrowserRouter basename={process.env.PUBLIC_URL}>
|
||||
<BrowserRouter basename={"/" + domain}>
|
||||
{props.children}
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
|
||||
Reference in New Issue
Block a user