php-apache2-basic-auth-manager icon indicating copy to clipboard operation
php-apache2-basic-auth-manager copied to clipboard

Redirect to Host-Domain vs. baseUrl

Open rsuarez82 opened this issue 7 years ago • 2 comments

Whenever a user or a group is added for example, the application sends the user back to the host domain. This is okay for as long as the auth manager isn't hosted in a specific subfolder. But, when you are in a subfolder, you want to get back to the user/group list usually. So it should go back to the list, preferrably defined by baseUrl in config.

rsuarez82 avatar Apr 03 '17 10:04 rsuarez82

In src/App/Controller/Group.php and src/App/Controller/User.php find lines with return $this->app->redirect('/'); and replace them with return $this->app->redirect($this->app['config']['baseUrl']);

dgeary2 avatar Nov 18 '17 07:11 dgeary2

In src/App/Controller/Group.php and src/App/Controller/User.php find lines with return $this->app->redirect('/'); and replace them with return $this->app->redirect($this->app['config']['baseUrl']);

Thank's, you saved my day

mserramanxa avatar Aug 25 '21 09:08 mserramanxa