From 3e52a0b7f0d7ec68394b660b171a70286d13d656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 5 Mar 2026 10:29:37 +0400 Subject: [PATCH] Fix reload compliance page on request all callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- apps/trust/src/hooks/useRequestAccessCallback.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/trust/src/hooks/useRequestAccessCallback.ts b/apps/trust/src/hooks/useRequestAccessCallback.ts index 337d5789a..336b9fc03 100644 --- a/apps/trust/src/hooks/useRequestAccessCallback.ts +++ b/apps/trust/src/hooks/useRequestAccessCallback.ts @@ -6,6 +6,8 @@ import { useMutation } from "react-relay"; import { useLocation, useSearchParams } from "react-router"; import { graphql } from "relay-runtime"; +import { getPathPrefix } from "#/utils/pathPrefix"; + import type { useRequestAccessCallback_allMutation } from "./__generated__/useRequestAccessCallback_allMutation.graphql"; import type { useRequestAccessCallback_documentMutation } from "./__generated__/useRequestAccessCallback_documentMutation.graphql"; import type { useRequestAccessCallback_fileMutation } from "./__generated__/useRequestAccessCallback_fileMutation.graphql"; @@ -170,7 +172,7 @@ export function useRequestAccessCallback() { } toast(successToastArgs(__)); - window.location.href = location.pathname; + window.location.href = (getPathPrefix() || "/") + location.pathname; }, onError: (error) => { toast(errorToastArgs(__, error));