apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
65 stars 72 forks source link

Redirect to previous page when cancelling new deadline deviation #1301

Closed ihalaij1 closed 9 months ago

ihalaij1 commented 9 months ago

Description

What?

Previously, the cancel button always sent the user to the deadline deviation list page. Now, it sends the user to the page where they came from, if possible.

Why?

This was requested by a teacher.

Fixes #1278

What type of test did you run?

Tested that redirection works after cancelling new deadline deviation on inspect submission page and user results page.

Did you test the changes in

Translation

Programming style

Have you updated the README or other relevant documentation?

Is it Done?

Clean up your git commit history before submitting the pull request!