fix: Add missing 'hc' path segment after custom domain in article URLs (#11353)

This commit is contained in:
Muhsin Keloth
2025-04-22 21:53:50 +05:30
committed by GitHub
parent e3bacd27d8
commit 76bec9a3ff
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ const getDefaultBaseURL = () => {
throw new Error('No valid base URL found in configuration');
}
return `${baseURL}/hc`;
return baseURL;
};
/**
@@ -39,7 +39,7 @@ const getPortalBaseURL = customDomain =>
*/
export const buildPortalURL = (portalSlug, customDomain) => {
const baseURL = getPortalBaseURL(customDomain);
return `${baseURL}/${portalSlug}`;
return `${baseURL}/hc/${portalSlug}`;
};
export const buildPortalArticleURL = (