Redirect to the version page after adding chapter
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user