aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-07-24 10:30:47 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-24 10:30:47 +0200
commit87ae3c4f08431e02869376cb57add257747910d1 (patch)
treeb8d75a44b7adf79fcd6e0ea84fb5c8c7a1e37506 /application/front
parent8e9169cebaf5697344cb373d69fe429e8e0efd5d (diff)
downloadShaarli-87ae3c4f08431e02869376cb57add257747910d1.tar.gz
Shaarli-87ae3c4f08431e02869376cb57add257747910d1.tar.zst
Shaarli-87ae3c4f08431e02869376cb57add257747910d1.zip
Fix default link and redirection in install controller
Diffstat (limited to 'application/front')
-rw-r--r--application/front/controller/visitor/InstallController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/front/controller/visitor/InstallController.php b/application/front/controller/visitor/InstallController.php
index 94ebb4ae..5e3152c7 100644
--- a/application/front/controller/visitor/InstallController.php
+++ b/application/front/controller/visitor/InstallController.php
@@ -128,7 +128,7 @@ class InstallController extends ShaarliVisitorController
128 $this->container->conf->get('credentials.salt') 128 $this->container->conf->get('credentials.salt')
129 ) 129 )
130 ); 130 );
131 $this->container->conf->set('general.header_link', $this->container->basePath); 131 $this->container->conf->set('general.header_link', $this->container->basePath . '/');
132 132
133 try { 133 try {
134 // Everything is ok, let's create config file. 134 // Everything is ok, let's create config file.
@@ -149,7 +149,7 @@ class InstallController extends ShaarliVisitorController
149 [t('Shaarli is now configured. Please login and start shaaring your bookmarks!')] 149 [t('Shaarli is now configured. Please login and start shaaring your bookmarks!')]
150 ); 150 );
151 151
152 return $this->redirect($response, '/'); 152 return $this->redirect($response, '/login');
153 } 153 }
154 154
155 protected function checkPermissions(): bool 155 protected function checkPermissions(): bool