Skip to content
Snippets Groups Projects
Unverified Commit 8fbe6e6f authored by Zia Fazal's avatar Zia Fazal Committed by GitHub
Browse files

Merge pull request #23169 from edx/ziafazal/ENT-2597

ENT-2597: Use encodeURIComponent instead of encodeURI
parents bfb374c9 eeb39086
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ define([
describe('MultipleEnterpriseInterface', function() {
var LEARNER_URL = '/enterprise/api/v1/enterprise-learner/?username=test-learner',
NEXT_URL = '/dashboard',
REDIRECT_URL = '/enterprise/select/active/?success_url=/dashboard';
REDIRECT_URL = '/enterprise/select/active/?success_url=%2Fdashboard';
beforeEach(function() {
// Mock the redirect call
......
......@@ -18,7 +18,7 @@
* @param {string} nextUrl The URL to redirect to after multiple enterprise selection.
*/
check: function(nextUrl) {
var redirectUrl = this.urls.multipleEnterpriseUrl + encodeURI(nextUrl);
var redirectUrl = this.urls.multipleEnterpriseUrl + encodeURIComponent(nextUrl);
var username = Utils.userFromEdxUserCookie().username;
var next = nextUrl || '/';
$.ajax({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment