diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-04-20 13:04:35 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-05-03 16:31:15 -0100 |
commit | e70f67cea9666047d168e7c6f1326f3b7c96c8b0 (patch) | |
tree | add3620fef22f7bce72047ecbfd95e488322fe8e /lib/Service | |
parent | 9038dc4fb44b6404da5e2f7e7d303c81c186e669 (diff) |
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-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; } |