chore: Remove static URLs from the documentation (#5461)

This commit is contained in:
Pranav Raj S 2022-09-19 21:52:01 -07:00 committed by GitHub
parent 3a1e521b4c
commit 1761100c77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 120 additions and 92 deletions

View file

@ -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}`;
};

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {

View file

@ -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();

View file

@ -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"
/>
</div>
@ -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 || {};

View file

@ -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() {

View file

@ -1,5 +1,5 @@
<template>
<div class="container">
<div class="container overflow-auto">
<article-header
:header-title="headerTitle"
:count="articleCount"

View file

@ -21,6 +21,7 @@
:portal="portal"
:status="portalStatus"
@add-locale="addLocale"
@open-site="openPortal"
/>
<div v-if="isFetching" class="portals--loader">
<spinner />
@ -51,6 +52,8 @@ import PortalListItem from '../../components/PortalListItem';
import Spinner from 'shared/components/Spinner.vue';
import EmptyState from 'dashboard/components/widgets/EmptyState';
import AddLocale from '../../components/AddLocale';
import { buildPortalURL } from 'dashboard/helper/portalHelper';
export default {
components: {
PortalListItem,
@ -79,6 +82,9 @@ export default {
},
},
methods: {
openPortal(portalSlug) {
window.open(buildPortalURL(portalSlug), '_blank');
},
addPortal() {
this.$router.push({ name: 'new_portal_information' });
},

View file

@ -9,6 +9,7 @@ json.meta article.meta
json.category do
json.id article.category_id
json.name article.category.name
json.slug article.category.slug
end
if article.portal.present?

View file

@ -33,6 +33,7 @@
<script>
window.chatwootConfig = {
hostURL: '<%= ENV.fetch('FRONTEND_URL', '') %>',
helpCenterURL: '<%= ENV.fetch('HELPCENTER_URL', '') %>',
fbAppId: '<%= ENV.fetch('FB_APP_ID', nil) %>',
fbApiVersion: '<%= @global_config['FACEBOOK_API_VERSION'] %>',
signupEnabled: '<%= @global_config['ENABLE_ACCOUNT_SIGNUP'] %>',

View file

@ -5,6 +5,7 @@ module.exports = {
'./app/javascript/widget/**/*.vue',
'./app/javascript/shared/**/*.vue',
'./app/javascript/survey/**/*.vue',
'./app/views/**/*.html.erb',
],
future: {
removeDeprecatedGapUtilities: true,