diff --git a/src/core/settings/pages/about/about.html b/src/core/settings/pages/about/about.html index 65dd36145..f948746d8 100644 --- a/src/core/settings/pages/about/about.html +++ b/src/core/settings/pages/about/about.html @@ -23,6 +23,14 @@

{{ privacyPolicy }}

+ + + + {{ 'core.login.siteurl' | translate }} * + + +

{{ siteUrl }}

+
diff --git a/src/core/settings/pages/about/about.ts b/src/core/settings/pages/about/about.ts index 1c339f5c1..373f0d90e 100644 --- a/src/core/settings/pages/about/about.ts +++ b/src/core/settings/pages/about/about.ts @@ -55,6 +55,8 @@ export class CoreSettingsAboutPage { storageType: string; localNotifAvailable: string; pushId: string; + siteUrl: string; + isPrefixedUrl: boolean; constructor(platform: Platform, device: Device, appProvider: CoreAppProvider, fileProvider: CoreFileProvider, initDelegate: CoreInitDelegate, langProvider: CoreLangProvider, sitesProvider: CoreSitesProvider, @@ -114,5 +116,9 @@ export class CoreSettingsAboutPage { this.localNotifAvailable = localNotificationsProvider.isAvailable() ? 'core.yes' : 'core.no'; this.pushId = pushNotificationsProvider.getPushId(); + + this.siteUrl = (currentSite && currentSite.getURL()) || + (typeof CoreConfigConstants.siteurl == 'string' && CoreConfigConstants.siteurl); + this.isPrefixedUrl = !!CoreConfigConstants.siteurl; } }