Re-authentication removes URL context
The easiest way to explain the issue:
- Go to https://cara.web.cern.ch/auth/logout (redirected to homepage)
- Go to https://cara.web.cern.ch/calculator/baseline-model/result (redirected to login)
- Observe that you are taken to https://cara.web.cern.ch/calculator after login
This also means that when you go to any authenticated URL, including saved reports such as http://cara.web.cern.ch/calculator-cern?exposed_coffee_break_option=coffee_break_4&exposed_coffee_duration=10&exposed_finish=18%3A00&exposed_start=09%3A00&hepa_amount=250.0&infected_coffee_break_option=coffee_break_4&infected_coffee_duration=10&infected_dont_have_breaks_with_exposed=1&infected_finish=18%3A00&infected_people=1&infected_start=09%3A00&opening_distance=0.2&room_number=123&room_volume=75.0&simulation_name=Test&total_people=10&ventilation_type=natural_ventilation&volume_type=room_volume_explicit&window_height=2.0&window_width=2.0&windows_number=1, the URL is lost if you are not first authenticated.
Fixing this will require understanding the nginx configuration and as well as the auth-service.