Redirect to the version page after adding chapter

This commit is contained in:
2022-02-18 00:16:59 +02:00
parent 0164e2756a
commit 249551cbc5

View File

@@ -202,7 +202,7 @@ module.exports = function (options) {
]
}).then(chapter => {
if (chapter) {
response.redirect(`/v/${chapter.artifactVersionId}/chapters/${chapter.id}`)
response.redirect(`/v/${chapter.artifactVersionId}`)
} else {
response.display("chapter-form", {
user: request.user,