mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
fix: use replace in new page redirect
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1df6eb7bf5
commit
8e65f74a07
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export const NewNotePage: NextPage = () => {
|
||||||
/>
|
/>
|
||||||
}>
|
}>
|
||||||
<ShowIf condition={!!value}>
|
<ShowIf condition={!!value}>
|
||||||
<Redirect to={`/n/${(value as Note).metadata.primaryAddress}`} />
|
<Redirect to={`/n/${(value as Note).metadata.primaryAddress}`} replace={true} />
|
||||||
</ShowIf>
|
</ShowIf>
|
||||||
</CustomAsyncLoadingBoundary>
|
</CustomAsyncLoadingBoundary>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue