mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
2693ebbb82
commit
f47f6c3658
1 changed files with 1 additions and 1 deletions
|
@ -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} />
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue