Skip to content

Commit

Permalink
fix: update preview url method
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Jul 17, 2023
1 parent 9b622c3 commit 08a8c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course_discovery/apps/course_metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ def preview_url(self):
url = None
if self.partner.marketing_site_url_root and self.active_url_slug:
path = self.get_course_url_path()
url = urljoin(self.partner.marketing_site_url_root, 'preview', path)
url = urljoin(self.partner.marketing_site_url_root, f'preview/{path}')

return url

Expand Down

0 comments on commit 08a8c2d

Please sign in to comment.