chore: Fix link generation logic in help-center (#5470)

This commit is contained in:
Pranav Raj S
2022-09-20 18:23:28 -07:00
committed by GitHub
parent 2d871a1ed5
commit cc4ef14faa
8 changed files with 43 additions and 4 deletions

View File

@@ -4,7 +4,12 @@ export const buildPortalURL = portalSlug => {
return `${baseURL}/hc/${portalSlug}`;
};
export const buildPortalArticleURL = (portalSlug, categorySlug, articleId) => {
export const buildPortalArticleURL = (
portalSlug,
categorySlug,
locale,
articleId
) => {
const portalURL = buildPortalURL(portalSlug);
return `${portalURL}/${categorySlug}/${articleId}`;
return `${portalURL}/${locale}/${categorySlug}/${articleId}`;
};