Skip to content

User blueprint home does not redirect on Panel login #5359

@olivertedwards

Description

@olivertedwards

Description

Previously, we could specifiy in a user blueprint where a user should be redirected upon login via the panel login form. I set up two blueprints (admin.yml and user.yml) where admin has panel access and user does not, and specified that the user should be redirected to the frontend home page after login.

However, when trying to log in as a user (associated with user.yml) I get a Load failed error, and when trying to reload the panel, the page fails completely with a Too many page redirects error. This results in a total panel failure, and the only way to make it work again, is to delete all session files in site/sessions.

Here is the user.yml setup, that works in the latest Kirby 3.9.5 versions, but not in the latest 4.0.0-alpha.4 version (have double checked and tested in both versions):

title: User
home: /
permissions:
  access:
    panel: false

Expected behaviour
As in the stable K3 release version, I was expecting the user to be redirected to the home page as instructed through home: /.

Screenshots
Before login
Screenshot 2023-07-09 at 15 47 00
After entering user credentials and clicking login
Screenshot 2023-07-09 at 15 57 57
After trying to reload the panel login page
Screenshot 2023-07-09 at 15 46 32

Setup

  • Kirby 4.0.0-alpha.4

Console output

  • TypeError: Load failed (error index.js:1:368579) — see screenshot above

System

  • Device: MacBook Pro
  • OS: macOS
  • Browser: Safari
  • Version: 16.5

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions