Fix /deck being removed from path when resizing window (#40180)

This commit is contained in:
Claire committed 2026-08-20 15:27:28 +02:00
1 parent 84d75eb62a
commit 6288f9edc6
3 files changed
+10 -7

No files matched your search

@@ -11,9 +11,10 @@ import type {
} from 'history';
import { createBrowserHistory } from 'history';
import { layoutFromWindow } from 'mastodon/is_mobile';
import { isDevelopment } from 'mastodon/utils/environment';
import { forceSingleColumn, hasMultiColumnPath } from '../initial_state';
import type { FocusTarget } from './navigation_focus_target';
interface MastodonLocationState {
@@ -63,7 +64,8 @@ function normalizePath(
}
if (
layoutFromWindow() === 'multi-column' &&
!forceSingleColumn &&
hasMultiColumnPath &&
location.pathname &&
!location.pathname.startsWith('/deck')
) {