fix: clicking the logo let's the user get back to the note

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2023-10-07 17:33:31 +02:00 committed by Erik Michelson
parent 2693ebbb82
commit f47f6c3658

View file

@ -20,5 +20,5 @@ export const RedirectToParamOrHistory: React.FC = () => {
const cleanedUrl = const cleanedUrl =
redirectBackUrl.startsWith('/') && !redirectBackUrl.startsWith('//') ? redirectBackUrl : defaultFallback redirectBackUrl.startsWith('/') && !redirectBackUrl.startsWith('//') ? redirectBackUrl : defaultFallback
return <Redirect to={cleanedUrl} /> return <Redirect to={cleanedUrl} replace={true} />
} }