mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 02:25:30 +00:00
15 lines
260 B
Go
15 lines
260 B
Go
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"))
|
|
}
|