OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 223 forks source link

Redirect user to intended route after forced login #997

Closed jjhampton closed 5 years ago

jjhampton commented 6 years ago

Feature

Why is this feature being added?

Current experience: 1) Navigate to www.operationcode.org/scholarships, without being logged in 2) Click on the 'Read More' button for a scholarship, which links to the Scholarship Application Page for that scholarship 3) Since the Application Page for scholarships is an 'Authenticated Route' requiring a user to be logged on, the user is redirected to the Login Page 4) After logging in, the user is redirected to the Profile page, not the Scholarship Application Page they were attempting to navigate to

Let's provides a better user-experience than this. Redirecting the user to the Profile page every time is an unnecessary context switch for a user.

What should your feature do?

In situations like this (where we redirect a user to the Login page when they're trying to access an Authenticated route), after they log on, let's redirect the user to the page they were originally trying to reach.

dmarchante commented 6 years ago

@jjhampton Is there a reason there isn't a link in the nav to scholarships? I get who the target audience is, but wouldn't it make sense to have the info public with some kind of disclaimer?