RTICWDT / evaluation-engine-website

The website portion of Evaluation Engine. It allows state administrators to create and manage accounts for their state, and authorized users to run analyses using information about students in the state longitudinal data system.
2 stars 1 forks source link

"New Study" button redirects to login page for another instance #1

Closed benthestatistician closed 7 years ago

benthestatistician commented 8 years ago

Precis of problem:

  1. logged into staging instance
  2. from Home screen, clicked "Start New Study"
  3. Instead of starting a new study I'm sent to login page for production instance, i.e. http://reviewevaluationengine.org/Account/LogOn?ReturnUrl=%2fAnalysis%2fStep1

Recognizing what was happening, I clicked the browser's back button, but the first couple of times this happened I confused by trying to log in again (being at the login page). If real users get into this position they may get significantly spun around.

Having navigated back to the landing page, if I click "Start New Study" again I also get redirected to production instance login page. To get out of this loop I had to go to "My Library", then from there click the "Home" tab. Once I did that I was able to start a new study.

My setup: Chrome 54.0.2840.98 (64-bit), on OSX 10.11.6 .

alexsmithRTI commented 7 years ago

Unable to reproduce, closing for now, but we can always reopen if the issue occurs again.

benthestatistician commented 7 years ago

Problem is still there. Here's a Blue Jeans screen recording of me experiencing it.

alexsmithRTI commented 7 years ago

I can fix this, but for now, use the staging login page to log in to staging.

http://reviewevaluationengine.org/staging/Account/LogOn

This issue is that right now, you're going to http://reviewevaluationengine.org/staging and then are being redirected, but because of the way the staging and development URLS are handled, you need to have the trailing '/' after 'staging'.

alexsmithRTI commented 7 years ago

All right,, NOW it's fixed. I tried what you did in your video and it works for me now. If you go to /staging, you will get redirected to /staging/ once you log in. This issue will go away entirely once we move to subdomains.

benthestatistician commented 7 years ago

thanks, @alexsmithRTI !

I agree that the main issue here is whether an end user would experience the problem. For future ref, I'd be happy to accept replies like "won't fix, just you be sure to add '/' to the end of 'staging' in the URL" in lieu of a fix, if indeed it's something specific to my pseudo-developer workflow that's unlikely to hit a real user.