File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ import { PageWrapper } from './components/wrapper/PageWrapper.jsx';
17
17
* @param {string } url
18
18
* @param {import('react-dom/server').RenderToPipeableStreamOptions } [options]
19
19
*/
20
- export function render ( url , options ) {
20
+ export function render ( _url , options ) {
21
+ const url = `/${ _url } ` ;
22
+
21
23
const { pipe, abort } = renderToPipeableStream (
22
24
< StrictMode >
23
25
< StaticRouter location = { url } >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const Router = () => {
14
14
return (
15
15
< Routes >
16
16
< Route index path = "/" element = { < Welcome /> } />
17
- < Route index path = "/dashboard/ " element = { < Dashboard /> } />
17
+ < Route index path = "/dashboard" element = { < Dashboard /> } />
18
18
</ Routes >
19
19
) ;
20
20
} ;
You can’t perform that action at this time.
0 commit comments