monfront - fix referer
Somewhen in the last couple years, something called a referer policy was introduced. This avoided the correct relocation after any action was sent. Now with the fix, the redirect properly works.
This commit is contained in:
parent
6a5c0b92bd
commit
a9634bbcaa
@ -236,7 +236,7 @@ func checkAction(w http.ResponseWriter, r *http.Request) {
|
|||||||
log.Printf("could not adjust checks %#v: %s", checks, err)
|
log.Printf("could not adjust checks %#v: %s", checks, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ref, found := r.Header["Referrer"]
|
ref, found := r.Header["Referer"]
|
||||||
if found {
|
if found {
|
||||||
w.Header()["Location"] = ref
|
w.Header()["Location"] = ref
|
||||||
} else {
|
} else {
|
||||||
@ -541,6 +541,7 @@ var (
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
|
<meta name="referrer" content="same-origin">
|
||||||
<link rel="shortcut icon" href="/static/favicon" />
|
<link rel="shortcut icon" href="/static/favicon" />
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
* { font-size: 100%; }
|
* { font-size: 100%; }
|
||||||
|
Loading…
Reference in New Issue
Block a user