mirror of
https://github.com/foomo/sesamy-go.git
synced 2025-10-16 12:35:43 +00:00
feat: use full location
This commit is contained in:
parent
5125125257
commit
6246b38719
@ -80,7 +80,7 @@ func MiddlewarDocument(next ClientHandler) ClientHandler {
|
||||
if referrer, err := url.Parse(r.Referer()); err != nil {
|
||||
return err
|
||||
} else {
|
||||
location := referrer.RequestURI()
|
||||
location := referrer.String()
|
||||
event.DocumentLocation = &location
|
||||
event.DocumentHostname = &referrer.Host
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user