Skip to content

Commit

Permalink
Merge pull request #36 from lumsx/umerF/lums-ecommerce-redirection-bug
Browse files Browse the repository at this point in the history
ecommerce redirection master merge
  • Loading branch information
mumerfarooq000 authored Feb 11, 2021
2 parents b69b26f + a9e2f78 commit b06f4c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lms/static/js/student_account/enrollment.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
// If so, redirect to a page explaining to the user
// why they were blocked.
this.redirect(responseData.user_message_url);
} else if (jqXHR.status === 409) {
// 409 is returned when user is already enrolled
// adding this for lumsx particularly it checks if the user already
// enrolled it will redirect it to dashboard rather than choose mode
this.redirect('/dashboard');
} else {
// Otherwise, redirect the user to the next page.
if (redirectUrl) {
Expand Down

0 comments on commit b06f4c6

Please sign in to comment.