mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-21 15:52:54 +00:00
fix(router/request): add query string when redirecting back to referrer (#37)
* Add query string when redirecting back to referrer Fixes #36 * Manipulate URL object for more consistent stringify Co-authored-by: thokra-nav <85170275+thokra-nav@users.noreply.github.com> Co-authored-by: thokra-nav <85170275+thokra-nav@users.noreply.github.com>
This commit is contained in:
@@ -103,7 +103,9 @@ func refererPath(r *http.Request) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
return referer.Path
|
||||
referer.Scheme = ""
|
||||
referer.Host = ""
|
||||
return referer.String()
|
||||
}
|
||||
|
||||
// RetryURI returns a URI that should retry the desired route that failed.
|
||||
|
||||
Reference in New Issue
Block a user