Redirect the user logout to the Dashboard


(Stéphane de Labrusse) #1

yep this is a side effect and the modification must be done at the core side, we can have a look and propose a pr


Nethserver-delegation needs testers
(Stéphane de Labrusse) #2

When you logout the root in nethgui, the last url is kept and give a 403 url if you login with a simple user just after.

Of course you must use the same web Browser/computer just after.

what about if the redirected url is the Dashboard (or UserProfile)?

in //usr/share/nethesis/Nethgui/Module/Logout.php

public function prepareView(\Nethgui\View\ViewInterface $view)
{
parent::prepareView($view);

  •    $view['nextPath'] = '/' . implode('/', $this->getRequest()->getOriginalPath());
    
  •    $view['nextPath'] = '/Dashboard';
    
    }

(Giacomo Sanchietti) #3

I don’t if such modification can affect normal behavior.

Maybe @davidep has some ideas.


(Davide Principi) #4

I’d prefer to check permissions on login and redirect to / if the requested module is not accessible.