Browse Source

fix: 🐛

imwald
codytseng 11 months ago
parent
commit
e9f8b2166e
  1. 3
      src/PageManager.tsx

3
src/PageManager.tsx

@ -92,7 +92,8 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) { @@ -92,7 +92,8 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
useEffect(() => {
if (window.location.pathname !== '/') {
if (
['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path))
['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path)) &&
!history.state
) {
setIsShared(true)
}

Loading…
Cancel
Save