I'm using https with my install. In the htaccess file, make sure this line says https instead of http if you're using https:
PHP Code:
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]
Which unnecessary redirect are you referring to? After login? In
view/loginview.php I simply replaced the page it lands on with an immediate redirect. (Note: If you're going to attempt to leave the existing code in, just make sure the header redirect is the first thing in the function and the rest is commented out. Any page rendering will break a header redirect.)
PHP Code:
public function index(){
header('Location: ' . $_SERVER['HTTP_REFERER']);
}
public function logout(){
header('Location: ' . $_SERVER['HTTP_REFERER']);
}
These ones bounce back to the last page you were on, alternatively, if you'd rather they end up at the index, use
PHP Code:
header( "Location: /" );
I'm actually in the process of doing the same with inventory and shop and various other places where a redirect feels more expected than a confirmation screen, but I haven't had time to dig into the exact functions.