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:
@@ -3,7 +3,6 @@ package controllers
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
@@ -147,11 +146,7 @@ func (p *PersonNewPage) POST(engine *templating.Engine, app core.App) HandleFunc
|
||||
}
|
||||
}(app, createdAgent.Id)
|
||||
|
||||
redirect := fmt.Sprintf(
|
||||
"/person/%s/edit?saved_message=%s",
|
||||
createdAgent.Id,
|
||||
url.QueryEscape("Änderungen gespeichert."),
|
||||
)
|
||||
redirect := fmt.Sprintf("/person/%s", createdAgent.Id)
|
||||
return e.Redirect(http.StatusSeeOther, redirect)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user