mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-30 19:42:57 -05:00
[Glitch] Fix custom history.push
and history.replace
building bogus location if path is omitted
Port 57a38f071b0ffd74b813516e24c9e86a23c4d467 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
9bd5838646
commit
86b9d3b4e5
@ -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…
x
Reference in New Issue
Block a user