Skip to content

Automatic intended-URL storage on unauthorized redirects

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Apr 12:59

10.1.0 (2026-04-09)

The session guard's error handler now calls withIntendedUrl and withQs when redirecting unauthenticated users to the login page, so the current URL is automatically stored in the session. After login you can redirect users back to where they were heading without any manual wiring.

Intended-URL storage applies to GET navigational requests (including Inertia) and is skipped for AJAX and non-GET requests or when no route is matched. Query strings are forwarded to the login redirect.

Features

  • store intended URL when redirecting unauthenticated users to login (aaf8a06)

Full Changelog: v10.0.0...v10.1.0