mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
FIX: back-links in bearbeiten-Formularen
This commit is contained in:
14
controllers/cancel_url.go
Normal file
14
controllers/cancel_url.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
)
|
||||
|
||||
func cancelURLFromHeader(e *core.RequestEvent) string {
|
||||
if e == nil || e.Request == nil {
|
||||
return ""
|
||||
}
|
||||
return strings.TrimSpace(e.Request.Header.Get("HX-Current-URL"))
|
||||
}
|
||||
Reference in New Issue
Block a user