CUL-DigitalServices / avocet-ui

Open Academic Environment (OAE) Front-End
http://www.oaeproject.org
Educational Community License v2.0
1 stars 1 forks source link

Clicking back after uploading file then clicking to login again results in 404 error #373

Closed micheleidesmith closed 9 years ago

micheleidesmith commented 9 years ago

This is slightly odd behaviour from a user's perspective but I did this:

  1. Logged in.
  2. Uploaded file.
  3. Clicked browser back button.
  4. Clicked on Google login credentials again.
  5. Got 404 page trying to access: http://ec2-54-73-99-234.eu-west-1.compute.amazonaws.com/me

I used Safari and Chrome. Happy to re-produce!

bertpareyn commented 9 years ago

I think this is caused by the default redirect behaviour being 'redirect to /me'. When hitting the back button it doesn't have the context that it normally has when clicking login. The easiest fix would be to just add /me in nginx and pointing it to /

timdegroote commented 9 years ago

Assigning @bp323 for review.

timdegroote commented 9 years ago

Puppet PR can be found here: https://github.com/CUL-DigitalServices/avocet-puppet/pull/28

bertpareyn commented 9 years ago

Verified and merged.