diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-02-01 09:21:22 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-02-01 09:21:22 -0100 |
commit | e8fd2c1d613644df885b9d2b44449a3952d59844 (patch) | |
tree | 511e5c2ed5e537833a0495c86b78417c495cd3f1 /lib/Service | |
parent | dc3e04e2e4f10c5524e7df3d8aad4dcb79edff08 (diff) |
getUrlSocial would work on custom apps folder
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-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; } |