mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 17:38:07 +01:00
Fix custom history.push
and history.replace
building bogus location if path is omitted (#31980)
This commit is contained in:
parent
5a8f2fe31d
commit
57a38f071b
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ function normalizePath(
|
||||||
|
|
||||||
if (
|
if (
|
||||||
layoutFromWindow() === 'multi-column' &&
|
layoutFromWindow() === 'multi-column' &&
|
||||||
!location.pathname?.startsWith('/deck')
|
location.pathname &&
|
||||||
|
!location.pathname.startsWith('/deck')
|
||||||
) {
|
) {
|
||||||
location.pathname = `/deck${location.pathname}`;
|
location.pathname = `/deck${location.pathname}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue