Closed nicocirio closed 1 month ago
Nice catch @darrensiegel , thanks! I have added a new live_session plug to redirect to the lesson page when there is an attempt in progress:
https://github.com/Simon-Initiative/oli-torus/assets/74839302/438dda12-e4c9-4724-aadc-59ac7284eee8
Link to the ticket
The issue was that the required scripts to "decode" the React component into HTML were not correctly provided. To fix it, we finally separated the prologue page into a new Liveview and do a redirect to the lesson page when the student clicks on "Begin Attempt".
Note: Besides the new RedirectToPrologue live session plug and the router minor change, most of the PR involved moving code from the
lesson_live.ex
to the newprologue_live.ex
, including its tests.Before
https://github.com/Simon-Initiative/oli-torus/assets/74839302/e9e4b9f4-4121-4c93-b0ec-f6b41117becc
After
https://github.com/Simon-Initiative/oli-torus/assets/74839302/6294e305-6666-4110-9164-37baba88261f