diff options
Diffstat (limited to 'lib/Service/ConfigService.php')
-rw-r--r-- | lib/Service/ConfigService.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 7e4c04e1..4236b9de 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -242,6 +242,7 @@ class ConfigService { return $this->config->getSystemValue($key, ''); } + /** * @param string $cloudAddress */ @@ -277,13 +278,17 @@ class ConfigService { /** - * // TODO - check the Apps folder + * @param string $path * * @return string * @throws SocialAppConfigException */ - public function getUrlSocial(): string { - return $this->getCloudAddress() . '/apps/social/'; + public function getUrlSocial(string $path = ''): string { + if ($path === '') { + $path = $this->urlGenerator->linkToRoute('social.Navigation.navigate'); + } + + return 'https://' . $this->getCloudAddress(true) . $path; } |