Logout (GET) and Login (POST) result in error if WINK_PATH is set to "/"
jdecode opened this issue · 0 comments
jdecode commented
If WINK_PATH
is set to /
in app/wink.php
here:
'path' => env('WINK_PATH', '/')
Following are the issues:
- Login form when submitted ends up in an error (
This page isn't working
:ERR_INVALID_REDIRECT
) - Logout link takes to the URL
/logout
(without any base URL or IP, 127.0.0.1 or any other URL)
In Vue.js the path that is supposed to be in JS variable Wink.path
which is set to /
and logout
directly takes you to /logout
(without the base URL).
In LoginController > Login
redirect('/'.config('wink.path'))
is the part that handles the post-login redirect, and wink.path
being empty results in an error somehow.
Note : Using any non-empty path, like wink
or blog
or anything else, login/logout links work just fine.