Skip to content

Commit b3ec527

Browse files
author
Muhammad Faraz Maqsood
committed
fix!: fix course detail page url bug
fix course detail page url as after creating a course, its detail page was not accessible and showing nothing. The course page was unavailable when the course run includes a dot, as a result it's url was mismatching and it is fixed by adding the trailing slash "/" to the url. Here's the link to the initial GitHub issue: openedx/wg-build-test-release#301
1 parent f0e196f commit b3ec527

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ecommerce/static/js/models/course_model.js

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ define([
3131

3232
return Backbone.RelationalModel.extend({
3333
urlRoot: '/api/v2/courses/',
34+
url: function() {
35+
return Backbone.Model.prototype.url.call(this) + '/';
36+
},
3437

3538
defaults: {
3639
id: null,

0 commit comments

Comments
 (0)