', {
type: 'code',
code: 'text/html',
multiline: true,
@@ -365,11 +365,11 @@ settings.addGroup('Email', function() {
});
this.section('Registration', function() {
- this.add('Accounts_Enrollment_Email_Subject', '{Welcome_to Site_name}', {
+ this.add('Accounts_Enrollment_Email_Subject', '{Welcome_to Workspace_name}', {
type: 'string',
i18nLabel: 'Subject',
});
- this.add('Accounts_Enrollment_Email', '{Welcome_to Site_Name}{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today} {Login}', {
+ this.add('Accounts_Enrollment_Email', '{Welcome_to Workspace_Name}{Visit_Workspace_Url_and_try_the_best_open_source_chat_solution_available_today} {Login}', {
type: 'code',
code: 'text/html',
multiline: true,
@@ -378,11 +378,11 @@ settings.addGroup('Email', function() {
});
this.section('Registration_via_Admin', function() {
- this.add('Accounts_UserAddedEmail_Subject', '{Welcome_to Site_Name}', {
+ this.add('Accounts_UserAddedEmail_Subject', '{Welcome_to Workspace_Name}', {
type: 'string',
i18nLabel: 'Subject',
});
- this.add('Accounts_UserAddedEmail_Email', '{Welcome_to Site_Name}{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today} {Login}', {
+ this.add('Accounts_UserAddedEmail_Email', '{Welcome_to Workspace_Name}{Visit_Workspace_Url_and_try_the_best_open_source_chat_solution_available_today} {Login}', {
type: 'code',
code: 'text/html',
multiline: true,
@@ -417,7 +417,7 @@ settings.addGroup('Email', function() {
type: 'string',
i18nLabel: 'Subject',
});
- this.add('Invitation_Email', '{Welcome_to Site_Name}{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today} {Join_Chat}', {
+ this.add('Invitation_Email', '{Welcome_to Workspace_Name}{Visit_Workspace_Url_and_try_the_best_open_source_chat_solution_available_today} {Join_Chat}', {
type: 'code',
code: 'text/html',
multiline: true,
@@ -447,7 +447,7 @@ settings.addGroup('Email', function() {
i18nLabel: 'Subject',
});
- this.add('Email_Changed_Email', '{Hi},{Your_email_address_has_changed} {Your_new_email_is_email} {Login}', {
+ this.add('Email_Changed_Email', '{Hi},{Your_email_address_has_changed} {Your_new_email_is_email} {Login}', {
type: 'code',
code: 'text/html',
multiline: true,
@@ -462,7 +462,7 @@ settings.addGroup('Email', function() {
i18nLabel: 'Subject',
});
- this.add('Password_Changed_Email', '{Hi},{Your_password_was_changed_by_an_admin} {Your_temporary_password_is_password} {Login}', {
+ this.add('Password_Changed_Email', '{Hi},{Your_password_was_changed_by_an_admin} {Your_temporary_password_is_password} {Login}', {
type: 'code',
code: 'text/html',
multiline: true,
diff --git a/app/lib/server/startup/settings.js b/app/lib/server/startup/settings.js
index a4358bb58393a..64d8cd3d6fd70 100644
--- a/app/lib/server/startup/settings.js
+++ b/app/lib/server/startup/settings.js
@@ -818,12 +818,12 @@ settings.addGroup('General', function() {
},
],
});
- this.add('Site_Url', typeof __meteor_runtime_config__ !== 'undefined' && __meteor_runtime_config__ !== null ? __meteor_runtime_config__.ROOT_URL : null, {
+ this.add('Workspace_Url', typeof __meteor_runtime_config__ !== 'undefined' && __meteor_runtime_config__ !== null ? __meteor_runtime_config__.ROOT_URL : null, {
type: 'string',
- i18nDescription: 'Site_Url_Description',
+ i18nDescription: 'Workspace_Description',
public: true,
});
- this.add('Site_Name', 'Rocket.Chat', {
+ this.add('Workspace_Name', 'Rocket.Chat', {
type: 'string',
public: true,
wizard: {
diff --git a/app/livechat/server/lib/OmniChannel.js b/app/livechat/server/lib/OmniChannel.js
index fae27bb1e0230..65263a60b0ff5 100644
--- a/app/livechat/server/lib/OmniChannel.js
+++ b/app/livechat/server/lib/OmniChannel.js
@@ -12,7 +12,7 @@ export default {
'content-type': 'application/json',
},
data: {
- url: settings.get('Site_Url'),
+ url: settings.get('Workspace_Url'),
},
});
return result.data;
diff --git a/app/livestream/client/oauth.js b/app/livestream/client/oauth.js
index e81ff871387b6..3c818275d4a25 100644
--- a/app/livestream/client/oauth.js
+++ b/app/livestream/client/oauth.js
@@ -12,6 +12,6 @@ export const close = (popup) => new Promise(function(resolve) {
});
export const auth = async () => {
- const oauthWindow = window.open(`${ settings.get('Site_Url') }/api/v1/livestream/oauth?userId=${ Meteor.userId() }`, 'youtube-integration-oauth', 'width=400,height=600');
+ const oauthWindow = window.open(`${ settings.get('Workspace_Url') }/api/v1/livestream/oauth?userId=${ Meteor.userId() }`, 'youtube-integration-oauth', 'width=400,height=600');
return close(oauthWindow);
};
diff --git a/app/livestream/server/routes.js b/app/livestream/server/routes.js
index 3a52aec6031c2..64975e8dd6cfb 100644
--- a/app/livestream/server/routes.js
+++ b/app/livestream/server/routes.js
@@ -9,7 +9,7 @@ const { OAuth2 } = google.auth;
API.v1.addRoute('livestream/oauth', {
get: function functionName() {
- const clientAuth = new OAuth2(settings.get('Broadcasting_client_id'), settings.get('Broadcasting_client_secret'), `${ settings.get('Site_Url') }/api/v1/livestream/oauth/callback`.replace(/\/{2}api/g, '/api'));
+ const clientAuth = new OAuth2(settings.get('Broadcasting_client_id'), settings.get('Broadcasting_client_secret'), `${ settings.get('Workspace_Url') }/api/v1/livestream/oauth/callback`.replace(/\/{2}api/g, '/api'));
const { userId } = this.queryParams;
const url = clientAuth.generateAuthUrl({
access_type: 'offline',
@@ -35,7 +35,7 @@ API.v1.addRoute('livestream/oauth/callback', {
const { userId } = JSON.parse(state);
- const clientAuth = new OAuth2(settings.get('Broadcasting_client_id'), settings.get('Broadcasting_client_secret'), `${ settings.get('Site_Url') }/api/v1/livestream/oauth/callback`.replace(/\/{2}api/g, '/api'));
+ const clientAuth = new OAuth2(settings.get('Broadcasting_client_id'), settings.get('Broadcasting_client_secret'), `${ settings.get('Workspace_Url') }/api/v1/livestream/oauth/callback`.replace(/\/{2}api/g, '/api'));
const ret = Meteor.wrapAsync(clientAuth.getToken.bind(clientAuth))(code);
diff --git a/app/mailer/server/api.js b/app/mailer/server/api.js
index 0ade57de27176..e7ef75b58ddf0 100644
--- a/app/mailer/server/api.js
+++ b/app/mailer/server/api.js
@@ -32,9 +32,9 @@ export const replace = function replace(str, data = {}) {
return '';
}
const options = {
- Site_Name: Settings.get('Site_Name'),
- Site_URL: Settings.get('Site_Url'),
- Site_URL_Slash: Settings.get('Site_Url').replace(/\/?$/, '/'),
+ Workspace_Name: Settings.get('Workspace_Name'),
+ Workspace_URL: Settings.get('Workspace_Url'),
+ Workspace_URL_Slash: Settings.get('Workspace_Url').replace(/\/?$/, '/'),
...data.name && {
fname: s.strLeft(data.name, ' '),
lname: s.strRightBack(data.name, ' '),
@@ -47,8 +47,8 @@ export const replace = function replace(str, data = {}) {
const nonEscapeKeys = ['room_path'];
export const replaceEscaped = (str, data = {}) => replace(str, {
- Site_Name: escapeHTML(settings.get('Site_Name')),
- Site_Url: escapeHTML(settings.get('Site_Url')),
+ Workspace_Name: escapeHTML(settings.get('Workspace_Name')),
+ Workspace_Url: escapeHTML(settings.get('Workspace_Url')),
...Object.entries(data).reduce((ret, [key, value]) => {
ret[key] = nonEscapeKeys.includes(key) ? value : escapeHTML(value);
return ret;
diff --git a/app/metrics/server/lib/collectMetrics.js b/app/metrics/server/lib/collectMetrics.js
index 66a24da4df911..fed00a0163656 100644
--- a/app/metrics/server/lib/collectMetrics.js
+++ b/app/metrics/server/lib/collectMetrics.js
@@ -22,7 +22,7 @@ const setPrometheusData = async () => {
metrics.info.set({
version: Info.version,
unique_id: settings.get('uniqueID'),
- site_url: settings.get('Site_Url'),
+ site_url: settings.get('Workspace_Url'),
}, 1);
const sessions = Array.from(Meteor.server.sessions.values());
diff --git a/app/ui-master/server/inject.js b/app/ui-master/server/inject.js
index 10cb94e51464d..50bdf3639424a 100644
--- a/app/ui-master/server/inject.js
+++ b/app/ui-master/server/inject.js
@@ -76,7 +76,7 @@ Meteor.startup(() => {
+ ``);
});
- settings.get('Site_Name', (key, value = 'Rocket.Chat') => {
+ settings.get('Workspace_Name', (key, value = 'Rocket.Chat') => {
const escapedValue = escapeHTML(value);
injectIntoHead(key,
`${ escapedValue }`
diff --git a/app/ui/client/lib/iframeCommands.js b/app/ui/client/lib/iframeCommands.js
index 5ad9003470b26..9a9b98b7c2b05 100644
--- a/app/ui/client/lib/iframeCommands.js
+++ b/app/ui/client/lib/iframeCommands.js
@@ -36,7 +36,7 @@ const commands = {
}, event.origin);
};
- const siteUrl = `${ Meteor.settings.Site_Url }/`;
+ const siteUrl = `${ Meteor.settings.Workspace_Url }/`;
if (typeof data.redirectUrl !== 'string' || !data.redirectUrl.startsWith(siteUrl)) {
data.redirectUrl = null;
}
diff --git a/app/utils/lib/getURL.js b/app/utils/lib/getURL.js
index 4042d57414a10..615589d0cacbb 100644
--- a/app/utils/lib/getURL.js
+++ b/app/utils/lib/getURL.js
@@ -68,5 +68,5 @@ export const getURL = (path, { cdn = true, full = false, cloud = false, cloud_ro
cloud_params,
_cdn_prefix: settings.get('CDN_PREFIX'),
_root_url_path_prefix: __meteor_runtime_config__.ROOT_URL_PATH_PREFIX,
- _site_url: settings.get('Site_Url'),
+ _site_url: settings.get('Workspace_Url'),
});
diff --git a/app/utils/lib/placeholders.js b/app/utils/lib/placeholders.js
index ffb93e7312aeb..9bcb0d6691e77 100644
--- a/app/utils/lib/placeholders.js
+++ b/app/utils/lib/placeholders.js
@@ -8,8 +8,8 @@ export const placeholders = {
return '';
}
- str = str.replace(/\[Site_Name\]/g, settings.get('Site_Name') || '');
- str = str.replace(/\[Site_URL\]/g, settings.get('Site_Url') || '');
+ str = str.replace(/\[Workspace_Name\]/g, settings.get('Workspace_Name') || '');
+ str = str.replace(/\[Workspace_URL\]/g, settings.get('Workspace_Url') || '');
if (data) {
str = str.replace(/\[name\]/g, data.name || '');
diff --git a/client/startup/unread.ts b/client/startup/unread.ts
index 68197a3c47e42..fe18c7bcd4431 100644
--- a/client/startup/unread.ts
+++ b/client/startup/unread.ts
@@ -84,7 +84,7 @@ Meteor.startup(() => {
window.favico = favicon;
Tracker.autorun(() => {
- const siteName = settings.get('Site_Name') ?? '';
+ const siteName = settings.get('Workspace_Name') ?? '';
const unread = Session.get('unread');
fireGlobalEvent('unread-changed', unread);
diff --git a/client/views/omnichannel/installation/Installation.js b/client/views/omnichannel/installation/Installation.js
index 186737caa76b2..a125f2cf6dc9b 100644
--- a/client/views/omnichannel/installation/Installation.js
+++ b/client/views/omnichannel/installation/Installation.js
@@ -11,7 +11,7 @@ import Wrapper from './Wrapper';
const Installation = () => {
const t = useTranslation();
- const siteUrl = useSetting('Site_Url')?.replace(/\/$/, '');
+ const siteUrl = useSetting('Workspace_Url')?.replace(/\/$/, '');
const installString = `
|