fix: 🐛
This commit is contained in:
parent
a41ff092cd
commit
697b8e4663
1 changed files with 2 additions and 1 deletions
|
|
@ -94,11 +94,12 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
|||
const ignorePopStateRef = useRef(false)
|
||||
|
||||
useEffect(() => {
|
||||
const hasHistoryState = !!history.state
|
||||
window.history.pushState(null, '', window.location.href)
|
||||
if (window.location.pathname !== '/') {
|
||||
if (
|
||||
['/users', '/notes', '/relays'].some((path) => window.location.pathname.startsWith(path)) &&
|
||||
!history.state
|
||||
!hasHistoryState
|
||||
) {
|
||||
setIsShared(true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue