diff --git a/app/javascript/dashboard/helper/portalHelper.js b/app/javascript/dashboard/helper/portalHelper.js new file mode 100644 index 000000000..71c35f61f --- /dev/null +++ b/app/javascript/dashboard/helper/portalHelper.js @@ -0,0 +1,10 @@ +export const buildPortalURL = portalSlug => { + const { hostURL, helpCenterURL } = window.chatwootConfig; + const baseURL = helpCenterURL || hostURL || ''; + return `${baseURL}/hc/${portalSlug}`; +}; + +export const buildPortalArticleURL = (portalSlug, categorySlug, articleId) => { + const portalURL = buildPortalURL(portalSlug); + return `${portalURL}/${categorySlug}/${articleId}`; +}; diff --git a/app/javascript/dashboard/i18n/locale/ar/helpCenter.json b/app/javascript/dashboard/i18n/locale/ar/helpCenter.json index 5707c7a5a..b48f301c0 100644 --- a/app/javascript/dashboard/i18n/locale/ar/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ar/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/bg/helpCenter.json b/app/javascript/dashboard/i18n/locale/bg/helpCenter.json index 2747f6dce..e008ffefa 100644 --- a/app/javascript/dashboard/i18n/locale/bg/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/bg/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ca/helpCenter.json b/app/javascript/dashboard/i18n/locale/ca/helpCenter.json index b3d85a307..df0280993 100644 --- a/app/javascript/dashboard/i18n/locale/ca/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ca/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/cs/helpCenter.json b/app/javascript/dashboard/i18n/locale/cs/helpCenter.json index 712e25ab8..4779130e6 100644 --- a/app/javascript/dashboard/i18n/locale/cs/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/cs/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/da/helpCenter.json b/app/javascript/dashboard/i18n/locale/da/helpCenter.json index b61ec3e09..c8afcf3a7 100644 --- a/app/javascript/dashboard/i18n/locale/da/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/da/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/de/helpCenter.json b/app/javascript/dashboard/i18n/locale/de/helpCenter.json index b1d35c587..a4bffcb26 100644 --- a/app/javascript/dashboard/i18n/locale/de/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/de/helpCenter.json @@ -164,7 +164,6 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal-Slug für URLs", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", "ERROR": "Slug ist erforderlich" }, "DOMAIN": { @@ -247,7 +246,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Kategorie-Slug für URLs", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug ist erforderlich" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/el/helpCenter.json b/app/javascript/dashboard/i18n/locale/el/helpCenter.json index 55021ee1a..1e8d54624 100644 --- a/app/javascript/dashboard/i18n/locale/el/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/el/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/en/helpCenter.json b/app/javascript/dashboard/i18n/locale/en/helpCenter.json index f4e598342..84ba9b8c9 100644 --- a/app/javascript/dashboard/i18n/locale/en/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/en/helpCenter.json @@ -160,7 +160,8 @@ } }, "ADD": { - "CREATE_FLOW": [{ + "CREATE_FLOW": [ + { "title": "Help center information", "route": "new_portal_information", "body": "Basic information about portal", @@ -211,7 +212,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -352,7 +353,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { @@ -383,7 +384,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/es/helpCenter.json b/app/javascript/dashboard/i18n/locale/es/helpCenter.json index 9af50f8c7..607739890 100644 --- a/app/javascript/dashboard/i18n/locale/es/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/es/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/fa/helpCenter.json b/app/javascript/dashboard/i18n/locale/fa/helpCenter.json index 8f466739e..411452387 100644 --- a/app/javascript/dashboard/i18n/locale/fa/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/fa/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug مورد نیاز است" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug دسته برای آدرس ها", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug مورد نیاز است" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/fi/helpCenter.json b/app/javascript/dashboard/i18n/locale/fi/helpCenter.json index a3c350b14..d689bb178 100644 --- a/app/javascript/dashboard/i18n/locale/fi/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/fi/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/fr/helpCenter.json b/app/javascript/dashboard/i18n/locale/fr/helpCenter.json index 89e2d0402..53aaa81e4 100644 --- a/app/javascript/dashboard/i18n/locale/fr/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/fr/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/he/helpCenter.json b/app/javascript/dashboard/i18n/locale/he/helpCenter.json index bc73af4fe..ed9525c21 100644 --- a/app/javascript/dashboard/i18n/locale/he/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/he/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/hi/helpCenter.json b/app/javascript/dashboard/i18n/locale/hi/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/hi/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/hi/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/hu/helpCenter.json b/app/javascript/dashboard/i18n/locale/hu/helpCenter.json index de706ddd5..97b256648 100644 --- a/app/javascript/dashboard/i18n/locale/hu/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/hu/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/id/helpCenter.json b/app/javascript/dashboard/i18n/locale/id/helpCenter.json index f4b8eda3a..cd3625c49 100644 --- a/app/javascript/dashboard/i18n/locale/id/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/id/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/it/helpCenter.json b/app/javascript/dashboard/i18n/locale/it/helpCenter.json index 2a068d05a..1ec5277df 100644 --- a/app/javascript/dashboard/i18n/locale/it/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/it/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug portale per URLs", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug è obbligatorio" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug categoria per url", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug è obbligatorio" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ja/helpCenter.json b/app/javascript/dashboard/i18n/locale/ja/helpCenter.json index 55932dfa7..f464401bd 100644 --- a/app/javascript/dashboard/i18n/locale/ja/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ja/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ka/helpCenter.json b/app/javascript/dashboard/i18n/locale/ka/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/ka/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ka/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ko/helpCenter.json b/app/javascript/dashboard/i18n/locale/ko/helpCenter.json index 56b20c478..91cbb2c02 100644 --- a/app/javascript/dashboard/i18n/locale/ko/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ko/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/lv/helpCenter.json b/app/javascript/dashboard/i18n/locale/lv/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/lv/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/lv/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ml/helpCenter.json b/app/javascript/dashboard/i18n/locale/ml/helpCenter.json index 467172aec..855fe2157 100644 --- a/app/javascript/dashboard/i18n/locale/ml/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ml/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ms/helpCenter.json b/app/javascript/dashboard/i18n/locale/ms/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/ms/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ms/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ne/helpCenter.json b/app/javascript/dashboard/i18n/locale/ne/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/ne/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ne/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/nl/helpCenter.json b/app/javascript/dashboard/i18n/locale/nl/helpCenter.json index cb531a9c1..3ee1b7a68 100644 --- a/app/javascript/dashboard/i18n/locale/nl/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/nl/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/no/helpCenter.json b/app/javascript/dashboard/i18n/locale/no/helpCenter.json index 1b81657e3..853d77da9 100644 --- a/app/javascript/dashboard/i18n/locale/no/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/no/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/pl/helpCenter.json b/app/javascript/dashboard/i18n/locale/pl/helpCenter.json index 0d06f6c87..fcc79f650 100644 --- a/app/javascript/dashboard/i18n/locale/pl/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/pl/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/pt/helpCenter.json b/app/javascript/dashboard/i18n/locale/pt/helpCenter.json index 108671158..21be07908 100644 --- a/app/javascript/dashboard/i18n/locale/pt/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/pt/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/helpCenter.json b/app/javascript/dashboard/i18n/locale/pt_BR/helpCenter.json index 360d772ac..efd019bea 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug do Portal para URLs", - "HELP_TEXT": "app.chatwoot.com/portal/meu-portal", + "HELP_TEXT": "app.chatwoot.com/hc/meu-portal", "ERROR": "Slug é obrigatório" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Categoria de slug para URLs", - "HELP_TEXT": "app.chatwoot.com/portal/meu-portal/en-US/categories/meu-slug", + "HELP_TEXT": "app.chatwoot.com/hc/meu-portal/en-US/categories/meu-slug", "ERROR": "Slug é obrigatório" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ro/helpCenter.json b/app/javascript/dashboard/i18n/locale/ro/helpCenter.json index bf7cc5e34..f9bee9262 100644 --- a/app/javascript/dashboard/i18n/locale/ro/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ro/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ru/helpCenter.json b/app/javascript/dashboard/i18n/locale/ru/helpCenter.json index 0d5b00675..a9d5b43ed 100644 --- a/app/javascript/dashboard/i18n/locale/ru/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ru/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Метка", "PLACEHOLDER": "Слаг портала для url", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Необходимо указать метку" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Метка", "PLACEHOLDER": "Метка категории для url", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Необходимо указать метку" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/sk/helpCenter.json b/app/javascript/dashboard/i18n/locale/sk/helpCenter.json index 710040745..5a9eb8608 100644 --- a/app/javascript/dashboard/i18n/locale/sk/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/sk/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/sr/helpCenter.json b/app/javascript/dashboard/i18n/locale/sr/helpCenter.json index c3db27fc3..a3cb74a95 100644 --- a/app/javascript/dashboard/i18n/locale/sr/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/sr/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug portala za adrese", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug je obavezan" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Slug kategorije za adrese", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug je obavezan" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/sv/helpCenter.json b/app/javascript/dashboard/i18n/locale/sv/helpCenter.json index 0ed7cee07..76d61f514 100644 --- a/app/javascript/dashboard/i18n/locale/sv/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/sv/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ta/helpCenter.json b/app/javascript/dashboard/i18n/locale/ta/helpCenter.json index 882182335..e9de2350c 100644 --- a/app/javascript/dashboard/i18n/locale/ta/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ta/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/th/helpCenter.json b/app/javascript/dashboard/i18n/locale/th/helpCenter.json index 7ab1cc37b..2a0bb1ac5 100644 --- a/app/javascript/dashboard/i18n/locale/th/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/th/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/tr/helpCenter.json b/app/javascript/dashboard/i18n/locale/tr/helpCenter.json index 37134ee65..fb308fbc1 100644 --- a/app/javascript/dashboard/i18n/locale/tr/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/tr/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/uk/helpCenter.json b/app/javascript/dashboard/i18n/locale/uk/helpCenter.json index 809461e57..814a7137e 100644 --- a/app/javascript/dashboard/i18n/locale/uk/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/uk/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Мітка", "PLACEHOLDER": "Портал slug для URL-адрес", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Необхідно вказати мітку" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Мітка", "PLACEHOLDER": "Мітка категорії для URL-адрес", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Необхідно вказати мітку" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ur/helpCenter.json b/app/javascript/dashboard/i18n/locale/ur/helpCenter.json index fe09232f2..4de5e604e 100644 --- a/app/javascript/dashboard/i18n/locale/ur/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ur/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/ur_IN/helpCenter.json b/app/javascript/dashboard/i18n/locale/ur_IN/helpCenter.json index f642814dc..d0c7b2411 100644 --- a/app/javascript/dashboard/i18n/locale/ur_IN/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/ur_IN/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/vi/helpCenter.json b/app/javascript/dashboard/i18n/locale/vi/helpCenter.json index e955f9302..ff7eab774 100644 --- a/app/javascript/dashboard/i18n/locale/vi/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/vi/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/zh_CN/helpCenter.json b/app/javascript/dashboard/i18n/locale/zh_CN/helpCenter.json index c542d71e1..a756f9c23 100644 --- a/app/javascript/dashboard/i18n/locale/zh_CN/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/zh_CN/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/zh-CN/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/zh-CN/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/i18n/locale/zh_TW/helpCenter.json b/app/javascript/dashboard/i18n/locale/zh_TW/helpCenter.json index 4503da88a..183a710c5 100644 --- a/app/javascript/dashboard/i18n/locale/zh_TW/helpCenter.json +++ b/app/javascript/dashboard/i18n/locale/zh_TW/helpCenter.json @@ -164,7 +164,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Portal slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal", + "ERROR": "Slug is required" }, "DOMAIN": { @@ -247,7 +247,7 @@ "SLUG": { "LABEL": "Slug", "PLACEHOLDER": "Category slug for urls", - "HELP_TEXT": "app.chatwoot.com/portal/my-portal/en-US/categories/my-slug", + "HELP_TEXT": "app.chatwoot.com/hc/my-portal/en-US/categories/my-slug", "ERROR": "Slug is required" }, "DESCRIPTION": { diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalListItem.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalListItem.vue index e259f5f8a..e0e002002 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalListItem.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalListItem.vue @@ -243,7 +243,7 @@ export default { this.$emit('add-locale', this.portal.id); }, openSite() { - this.$emit('open-site'); + this.$emit('open-site', this.portal.slug); }, openSettings() { this.fetchPortalsAndItsCategories(); diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalSettingsBasicForm.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalSettingsBasicForm.vue index fc5d5d472..796d029d6 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalSettingsBasicForm.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/components/PortalSettingsBasicForm.vue @@ -50,7 +50,7 @@ :error="slugError" :label="$t('HELP_CENTER.PORTAL.ADD.SLUG.LABEL')" :placeholder="$t('HELP_CENTER.PORTAL.ADD.SLUG.PLACEHOLDER')" - :help-text="$t('HELP_CENTER.PORTAL.ADD.SLUG.HELP_TEXT')" + :help-text="domainHelpText" @input="$v.slug.$touch" /> @@ -80,6 +80,7 @@ import thumbnail from 'dashboard/components/widgets/Thumbnail'; import { required, minLength } from 'vuelidate/lib/validators'; import { convertToCategorySlug } from 'dashboard/helper/commons.js'; +import { buildPortalURL } from 'dashboard/helper/portalHelper'; export default { components: { @@ -132,6 +133,9 @@ export default { domainError() { return this.$v.domain.$error; }, + domainHelpText() { + return buildPortalURL(this.slug); + }, }, mounted() { const portal = this.portal || {}; diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/EditArticle.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/EditArticle.vue index 700574b2e..bf7468dd1 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/EditArticle.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/EditArticle.vue @@ -51,6 +51,7 @@ import Spinner from 'shared/components/Spinner'; import portalMixin from '../../mixins/portalMixin'; import alertMixin from 'shared/mixins/alertMixin'; import wootConstants from 'dashboard/constants'; +import { buildPortalArticleURL } from 'dashboard/helper/portalHelper'; const { ARTICLE_STATUS_TYPES } = wootConstants; export default { @@ -86,7 +87,11 @@ export default { }, portalLink() { const slug = this.$route.params.portalSlug; - return `/hc/${slug}/${this.article.category.slug}/${this.article.id}`; + return buildPortalArticleURL( + slug, + this.article.category.slug, + this.article.id + ); }, }, mounted() { diff --git a/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/ListAllArticles.vue b/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/ListAllArticles.vue index f46d87d50..71c7599b4 100644 --- a/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/ListAllArticles.vue +++ b/app/javascript/dashboard/routes/dashboard/helpcenter/pages/articles/ListAllArticles.vue @@ -1,5 +1,5 @@