Skip to content

Logout (GET) and Login (POST) result in error if WINK_PATH is set to "/" #349

Description

@jdecode

If WINK_PATH is set to / in app/wink.php here:

'path' => env('WINK_PATH', '/')

Following are the issues:

  1. Login form when submitted ends up in an error (This page isn't working : ERR_INVALID_REDIRECT)
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions