I would recommend having a method somewhere (url_constants, perhaps) that just takes in a course_id and spits out this URL. It's better to localize the URL's than to have them separately.