Update public apps for dedicated host routing

Stop relying on the /trust/{id} path prefix in the public trust app and
serve it from the host root, reading contact and profile data from the
trust center instead of the organization. Mirror the same fragment
ownership change in the compliance portal hero.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-10 15:17:28 +02:00
parent de367f032f
commit ec80798243
19 changed files with 63 additions and 145 deletions

View File

@@ -26,8 +26,6 @@ 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";
@@ -192,7 +190,7 @@ export function useRequestAccessCallback() {
}
toast(successToastArgs(__));
window.location.href = window.location.origin + getPathPrefix() + location.pathname;
window.location.href = window.location.origin + location.pathname;
},
onError: (error) => {
toast(errorToastArgs(__, error));