Problem Statement:
Currently, users clicking on email-generated deep-links (e.g., specific reports, forum posts, or notifications) are unable to reach their destination directly if they are not already logged in. The authentication process includes an intermediate "Confirm/Continue" screen that, once cleared, redirects the user to the default Dashboard rather than the original URL they requested. This creates a redundant and frustrating user experience where the user must click the email link a second time to reach their intended page.
Proposed Feature: "Smart Redirect & Session Handshake"
1. URL Persistence (Target Parameter):
Implement a redirect_to or return_url parameter in the login string. When a user clicks a mailed link (e.g., airmaestro.co.uk/Modules/Safety New/Occurrence Report.aspx?OccID=355), the system should capture this destination. If the user is redirected to the login/confirmation screen, that destination should be carried through as a variable.
2. Bypass or Auto-Forward Intermediate Screens:
Option A: If a user arrives via a valid deep-link and successfully authenticates, the "Continue to OSS" checkbox screen should be bypassed entirely.
Option B (If the confirmation screen is legally/technically required): Ensure the "Continue" button's action is dynamically set to the return_url instead of the default /dashboard.
3. Session Handshake:
Ensure that the "ticking the box to continue" action completes the authentication handshake without clearing the navigation history or the specific resource identifiers in the URL.
User Benefit:
Efficiency: Reduces the login process from a multi-step "click-login-confirm-click again" loop to a single "click-login" flow.
User Retention: Prevents user frustration and the feeling that the system is "broken" or "buggy" when it fails to remember their destination.
Example Use Case:
User receives a notification about a report change. He clicks the link in his email. He logs in and clicks "Continue." Instead of seeing the Dashboard, he lands directly on the high-priority report he needs to review.
Related AM-I-239