このコミットが含まれているのは:
2026-10-18 18:54:59 +09:00
コミット 912b941f90
22個のファイルの変更、391行の追加、133行の削除
+2 -1
ファイルの表示
@@ -9,6 +9,7 @@ import { useOverlayStore } from '@/components/RouteBlockerOverlay'
import { prefetchForURL } from '@/lib/prefetchers'
import { useClientBehaviourSettings } from '@/lib/useClientBehaviourSettings'
import { cn } from '@/lib/utils'
import { currentRenderContext } from '@/lib/renderContext'
import type { AnchorHTMLAttributes, MouseEvent, TouchEvent } from 'react'
import type { To } from 'react-router-dom'
@@ -47,7 +48,7 @@ export default forwardRef<HTMLAnchorElement, Props> (({
[to, locale],
)
const url = useMemo (() => {
return (new URL (path, window.location.origin)).toString ()
return (new URL (path, currentRenderContext ()?.origin ?? 'http://localhost')).toString ()
}, [path])
const setOverlay = useOverlayStore (s => s.setActive)