summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-04-20 13:04:35 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-03 16:31:15 -0100
commite70f67cea9666047d168e7c6f1326f3b7c96c8b0 (patch)
treeadd3620fef22f7bce72047ecbfd95e488322fe8e /lib/Service
parent9038dc4fb44b6404da5e2f7e7d303c81c186e669 (diff)
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ConfigService.php9
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;
}