X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fcomponents%2Fpages%2FFront.js;h=73b9b23d8fb6f5e6482b1f17627647d76575dc65;hb=45f1e92a30b00dfcf4304dc70126e813df9f4a10;hp=26078696bac6262901ad4629d40ca5c480161450;hpb=4f4b2fd64141cbbff953881e2705602a00b85df5;p=alttp.git diff --git a/resources/js/components/pages/Front.js b/resources/js/components/pages/Front.js index 2607869..73b9b23 100644 --- a/resources/js/components/pages/Front.js +++ b/resources/js/components/pages/Front.js @@ -5,6 +5,14 @@ import { useNavigate } from 'react-router-dom'; const Front = () => { const navigate = useNavigate(); + React.useEffect(() => { + const returnPath = localStorage.getItem('returnPath'); + if (returnPath) { + localStorage.removeItem('returnPath'); + navigate(returnPath); + } + }, []); + return