diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-22 16:21:40 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-07-22 16:21:40 -0100 |
commit | f668e6e81824f9ae106a324750cbfdc3e50e70d9 (patch) | |
tree | 67fb1a0d3018932c2f14691dac2d2a45e3ac7e00 | |
parent | 7c921c40f6a769d345654fca5ae5fc09738974f1 (diff) |
fixing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Controller/NavigationController.php | 3 | ||||
-rw-r--r-- | lib/Service/ConfigService.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php index b613fb1e..8c27aa59 100644 --- a/lib/Controller/NavigationController.php +++ b/lib/Controller/NavigationController.php @@ -132,6 +132,7 @@ class NavigationController extends Controller { * * @return TemplateResponse * @throws UrlCloudException + * @throws SocialAppConfigException */ public function navigate(string $path = ''): TemplateResponse { $data = [ @@ -169,7 +170,7 @@ class NavigationController extends Controller { try { $this->configService->getSocialUrl(); } catch (SocialAppConfigException $e) { - $this->configService->setSocialUrl(''); + $this->configService->setSocialUrl(); } if ($data['serverData']['isAdmin']) { diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 267deca7..515521f4 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -379,7 +379,7 @@ class ConfigService { */ public function setSocialUrl(string $url = '') { if ($url === '') { - $url = $this->getCloudUrl() . $this->urlGenerator->linkToRoute( + $url = $this->getCloudUrl(true) . $this->urlGenerator->linkToRoute( 'social.Navigation.navigate' ); } |