mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+better site editor, redirect to view on saving
This commit is contained in:
@@ -226,9 +226,10 @@ func (p *AlmanachEditPage) POSTSave(engine *templating.Engine, app core.App) Han
|
||||
}
|
||||
|
||||
return e.JSON(http.StatusOK, map[string]any{
|
||||
"success": true,
|
||||
"message": "Änderungen gespeichert.",
|
||||
"updated": updatedInfo,
|
||||
"success": true,
|
||||
"message": "Änderungen gespeichert.",
|
||||
"updated": updatedInfo,
|
||||
"redirect": fmt.Sprintf("/almanach/%s/", id),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user