Skip to content

Redirect loop when logging in #5

@teppokoivula

Description

@teppokoivula

When I don't have showPage defined and I'm at /processwire/ (admin root page), this rule always matches and attempts to redirect to /processwire/, thus creating an endless redirect loop:

// Else redirect to the login page                                                                                                                                                          
} elseif (!$this->showPage && $page->name != 'login') {
    $this->session->redirect($this->config->urls->admin, false);
}

I'm not entirely sure if/how this has worked before, but it doesn't make much sense to me (and at least when testing with PW 2.4.9 it's not working either). What am I missing here? :)

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