Skip to content

redirect issue with checkAuthentication() #681

Closed
@lkissorban

Description

The redirect is not working after login, as the url is duplicated.

Solution:
in config.php a new line after 'URL' definition:
'BASE_URL' => str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])),
in Auth.php change the header() line to:
header('location: ' . Config::get('URL') . 'login?redirect=' . urlencode(substr($_SERVER['REQUEST_URI'],strlen(Config::get('BASE_URL')))));

L

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