X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fpages%2FFront.js;h=73b9b23d8fb6f5e6482b1f17627647d76575dc65;hb=18424fc6de2fc902ee2b2d3143955081263adff4;hp=26078696bac6262901ad4629d40ca5c480161450;hpb=f54a77f2274afbdaa948e4968ac4958942fbdd3b;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