Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
83 stars 35 forks source link

[BUG FIX] [MER-3506] After completing a lesson the back arrow does not work #4979

Closed Francisco-Castro closed 1 month ago

Francisco-Castro commented 1 month ago

Ticket: MER-3506

This PR adds a fix for an issue that occurred after completing a lesson where the back arrow didn't work. The problem was that it failed to consider cases when the request_path was "". After completing an adaptive page, React called an endpoint in our backend that redirects twice to different endpoints, and we never filled out the request_path. The back link wasn't prepared for this scenario.