Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/664/head
Maxence Lange 2019-07-22 16:21:40 -01:00
rodzic 7c921c40f6
commit f668e6e818
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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']) {

Wyświetl plik

@ -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'
);
}