|
68 | 68 | this.purchaseWorkflow = queryParams.purchaseWorkflow;
|
69 | 69 | if (queryParams.next) {
|
70 | 70 | // Ensure that the next URL is internal for security reasons
|
| 71 | + this.updateTaskDescription(gettext("query param next is provide")); |
71 | 72 | if (!window.isExternal(queryParams.next)) {
|
| 73 | + this.updateTaskDescription(gettext("query param next is internal")); |
72 | 74 | this.nextUrl = queryParams.next;
|
73 | 75 | }
|
74 | 76 | }
|
|
135 | 137 | The track selection page would allow the user to select the course mode
|
136 | 138 | ("verified", "honor", etc.) -- or, if the only course mode was "honor",
|
137 | 139 | it would redirect the user to the dashboard. */
|
| 140 | + this.updateTaskDescription(gettext("course mode param is not provided")); |
138 | 141 | redirectUrl = this.appendPurchaseWorkflow(this.urls.trackSelection + courseId + '/');
|
139 | 142 | } else if (this.courseMode === 'honor' || this.courseMode === 'audit') {
|
140 | 143 | /* The newer version of the course details page allows the user
|
141 | 144 | to specify which course mode to enroll as. If the student has
|
142 | 145 | chosen "honor", we send them immediately to the next URL
|
143 | 146 | rather than the payment flow. The user may decide to upgrade
|
144 | 147 | from the dashboard later. */
|
| 148 | + this.updateTaskDescription(gettext("course mode param is provided")); |
145 | 149 | } else {
|
146 | 150 | /* If the user selected any other kind of course mode, send them
|
147 | 151 | to the payment/verification flow. */
|
|
160 | 164 | shoppingCartInterface.addCourseToCart(this.courseId);
|
161 | 165 | } else {
|
162 | 166 | // Otherwise, redirect the user to the next page.
|
| 167 | + this.updateTaskDescription(gettext(" redirect the user to the next page")); |
163 | 168 | this.redirect(redirectUrl);
|
164 | 169 | }
|
165 | 170 | },
|
|
0 commit comments