From 078abaa1c17a607c4239faedb860c4fa4a61d305 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 25 Sep 2023 16:11:51 +0500 Subject: [PATCH] fix!: fix course detail page url as after creating a course, its detail page was not accessible, its url was mismatching and it is fixed by adding the trailing slash "/" to the url --- ecommerce/static/js/models/course_model.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecommerce/static/js/models/course_model.js b/ecommerce/static/js/models/course_model.js index feb173e5d4c..6a0e63f42ec 100644 --- a/ecommerce/static/js/models/course_model.js +++ b/ecommerce/static/js/models/course_model.js @@ -31,6 +31,9 @@ define([ return Backbone.RelationalModel.extend({ urlRoot: '/api/v2/courses/', + url: function() { + return Backbone.Model.prototype.url.call(this) + '/'; + }, defaults: { id: null,