tillmo / two_tiered_quiz

A multiple choice quiz with justifications for the answers, written in Django
GNU Affero General Public License v3.0
0 stars 0 forks source link

Handle routes between quizzes #103

Closed pramodbontha closed 4 years ago

pramodbontha commented 4 years ago

The routing between quiz and quiz report needs to handled correct with the URLs

tillmo commented 4 years ago

could you please explain the problem in more detail? It is hard to review a PR without having understood the problem completely.

pramodbontha commented 4 years ago

Reproducing the Issue.

  1. Take a quiz and finish it.
  2. Once you are on the report page, click on the back button of browser. Here the URL changes to start of the quiz.
  3. Now Refreshing the page makes quiz start again as a new one for the same quiz finished before. When a user submits the quiz, it will be created as a new entry in the database for the same quiz.

The code fix will solve this issue by redirecting it to Available Quizzes page when user clicks on back button on quiz report page