+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

@@ -3,7 +3,6 @@ package controllers
import (
"fmt"
"net/http"
"net/url"
"slices"
"strings"
@@ -143,11 +142,7 @@ func (p *OrtNewPage) POST(engine *templating.Engine, app core.App) HandleFunc {
}
}(app, createdPlace.Id)
redirect := fmt.Sprintf(
"/ort/%s/edit?saved_message=%s",
createdPlace.Id,
url.QueryEscape("Änderungen gespeichert."),
)
redirect := fmt.Sprintf("/ort/%s/", createdPlace.Id)
return e.Redirect(http.StatusSeeOther, redirect)
}
}