mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Fix link generation logic in help-center (#5470)
This commit is contained in:
@@ -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}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user