このコミットが含まれているのは:
2026-10-26 19:31:00 +09:00
コミット f44a436e20
12個のファイルの変更、95行の追加、41行の削除
+3 -1
ファイルの表示
@@ -66,7 +66,9 @@ export const render = async (
authentication: Pick<RenderContext, 'cookie' | 'forwardedFor'> = { },
): Promise<RenderedPage | RouteResponse> => {
const url = new URL (address, origin)
const legacy = legacyLocalePath ({ pathname: url.pathname, search: url.search, hash: '' })
const legacy = legacyLocalePath (
{ pathname: url.pathname, search: url.search, hash: url.hash },
pathname => resolvePageRoute (pathname) != null)
const pathname = legacy == null ? url.pathname : new URL (legacy, origin).pathname
const segment = pathname.split ('/')[1]
const known = resolvePageRoute (pathname)