apptension / saas-boilerplate

SaaS Boilerplate - Open Source and free SaaS stack that lets you build SaaS products faster in React, Django and AWS. Focus on essential business logic instead of coding repeatable features!
https://apptension.com/saas-boilerplate
MIT License
2.27k stars 277 forks source link

Add support for returnUrl to the webapp #519

Closed mkleszcz closed 6 months ago

mkleszcz commented 7 months ago

Description

Currently when someone is trying to access application page without being logged in (like invitation from the email message) the app will redirect user to the login page. After successful login, user is always redirected to the home screen.

Describe the solution you'd like

App should save the url which not logged in user is trying to access in returnUrl GET param and after login/sign up should redirect user to this page. Also before redirect to login page the app should display a toast that page that user is trying to access require login.

Describe alternatives you've considered

No response

Additional context

No response

Validations