Fix link creation when adding a study course