diff options
Diffstat (limited to 'lib/Service/ConfigService.php')
-rw-r--r-- | lib/Service/ConfigService.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 4236b9de..cdfee8e3 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -262,6 +262,12 @@ class ConfigService { throw new SocialAppConfigException(); } + // fixing address for alpha2 + if (substr($address, -10) === '/index.php') { + $address = substr($address, 0, -10); + $this->setCloudAddress($address); + } + if ($host === true) { $parsed = parse_url($address); $result = $this->get('host', $parsed, ''); @@ -288,7 +294,8 @@ class ConfigService { $path = $this->urlGenerator->linkToRoute('social.Navigation.navigate'); } - return 'https://' . $this->getCloudAddress(true) . $path; + return $this->getCloudAddress() . $path; +// return 'https://' . $this->getCloudAddress(true) . $path; } |