Skip to content

Commit bd834c9

Browse files
committed
Redirect after chapter creation.
1 parent 62eb8d6 commit bd834c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

administration/static/app/controllers/admin.lesson.controllers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
if(activityIndex >= 0) {
134134
$scope.currentActivity = $scope.currentUnit.activities[activityIndex];
135135
}
136+
window.location.replace('/admin/courses/' + lesson.course + '/lessons/' + lesson.id);
136137
})['catch'](function(resp){
137138
$scope.alert.error(httpErrors[resp.status.toString()]);
138139
});

0 commit comments

Comments
 (0)