X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fpages%2FFront.js;h=42ac7cf9d26e3da9e2239740464f4b87966d2457;hb=a0bca4306e882d77ba192eed889bd7ed52896dad;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..42ac7cf 100644 --- a/resources/js/components/pages/Front.js +++ b/resources/js/components/pages/Front.js @@ -2,12 +2,23 @@ import React from 'react'; import { Button, Col, Container, Image, Row } from 'react-bootstrap'; import { useNavigate } from 'react-router-dom'; +import CanonicalLinks from '../common/CanonicalLinks'; + const Front = () => { const navigate = useNavigate(); + React.useEffect(() => { + const returnPath = localStorage.getItem('returnPath'); + if (returnPath) { + localStorage.removeItem('returnPath'); + navigate(returnPath); + } + }, []); + return + - + - - - ; };