diff --git a/frontend/src/hooks/useDefaultProjectSettings.ts b/frontend/src/hooks/useDefaultProjectSettings.ts index ce809f4e67..0e069c5914 100644 --- a/frontend/src/hooks/useDefaultProjectSettings.ts +++ b/frontend/src/hooks/useDefaultProjectSettings.ts @@ -7,6 +7,7 @@ import { DefaultStickiness, ProjectMode, } from 'component/project/Project/hooks/useProjectForm'; +import { formatApiPath } from 'utils/formatPath'; export interface ISettingsResponse { defaultStickiness?: DefaultStickiness; @@ -19,14 +20,14 @@ export const useDefaultProjectSettings = ( ) => { const { uiConfig } = useUiConfig(); - const PATH = `/api/admin/projects/${projectId}/settings`; + const PATH = `api/admin/projects/${projectId}/settings`; const { projectScopedStickiness } = uiConfig.flags; const { data, error, mutate } = useConditionalSWR( Boolean(projectId) && Boolean(projectScopedStickiness), {}, ['useDefaultProjectSettings', PATH], - () => fetcher(PATH), + () => fetcher(formatApiPath(PATH)), options );