Skip to content

adocasts/redirecting-back-after-login

Repository files navigation

Adocasts

How To Redirect Back to the Previous Page After Login with AdonisJS

YouTube Badge Twitter Badge Twitch Badge

In this lesson, we'll learn an easy way we can safely redirect our user's back to their original page after they login or register in an AdonisJS application. We'll also verify the URL matches an actual GET route definition within our application.

🎯 We'll learn how to:

  • Provide the referrer to our login handler
  • Persist an old forward path on invalid login attempts
  • Verify the referrer is a valid URL
  • Verify the referrer matches a valid GET route defined within our application

👉 Watch now on Adocasts!

About

Repository for "How To Redirect Back to the Previous Page After Login with AdonisJS"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages