Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 169b4e2b authored by Plumtree3D's avatar Plumtree3D
Browse files

fix: dynamic render on redirection

parent ddc3b519
No related branches found
No related tags found
No related merge requests found
Pipeline #12248 passed
import React from "react";
import BrowserOnly from '@docusaurus/BrowserOnly';
const url = 'https://www.lydra.eu'
export default function Redirect({path}) {
return window.location.replace(`${url}/${path}`);
return (
<BrowserOnly>
{() => window.location.replace(`${url}/${path}`)}
</BrowserOnly>
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment