Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-09-04 17:58:27 +0300
committerJulius Haertl <jus@bitgrid.net>2016-09-04 17:58:27 +0300
commite610b10ee9b23735814eb5b37e068235eb353ffe (patch)
tree71c876bcc70fc9f79da922f8ea64ebecedc39e9f /lib
parent1be14289ddda5e397c584d64ca320a71031e904a (diff)
Fix default redirection
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/AppController.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Controller/AppController.php b/lib/Controller/AppController.php
index cb5d8fe..20de25c 100644
--- a/lib/Controller/AppController.php
+++ b/lib/Controller/AppController.php
@@ -55,7 +55,12 @@ class AppController extends Controller {
if($order !== null && sizeof($order)>0) {
$firstPage = $order[0];
} else {
- return new RedirectResponse($this->urlGenerator->linkTo('files',''));
+ $appId = 'files';
+ if(getenv('front_controller_active') === 'true') {
+ $firstPage = $this->urlGenerator->getAbsoluteURL('/apps/' . $appId . '/');
+ } else {
+ $firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/');
+ }
}
return new RedirectResponse($firstPage);
}