+better site editor, redirect to view on saving

This commit is contained in:
Simon Martens
2026-01-14 20:35:30 +01:00
parent f724cdf975
commit ff5f080f6c
12 changed files with 16 additions and 35 deletions

View File

@@ -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),
})
}
}