UserAgent
header and respond accordingly.
UserAgent
header and respond accordingly.

hx-*
attributes and get the same user experience? π
#htmx

hx-*
attributes and get the same user experience? π
#htmx
https://hypermedia.systems/
https://hypermedia.systems/
126.0.1
π€£
126.0.1
π€£
127.0.1 (64-bit)
tonight and tested and it worked just fine. Try upgrading and roll that commit back and see if it still repros? π€ I'm almost willing to bet this is a bug π
127.0.1 (64-bit)
tonight and tested and it worked just fine. Try upgrading and roll that commit back and see if it still repros? π€ I'm almost willing to bet this is a bug π
* aa2f3ae9 - (HEAD -> main, origin/main) Workaround for this invalid Referer BS (6 seconds ago) <James Mills>
* aa2f3ae9 - (HEAD -> main, origin/main) Workaround for this invalid Referer BS (6 seconds ago) <James Mills>
Referer
is /post
then consider that total bullshit, and ignore? π€
Referer
is /post
then consider that total bullshit, and ignore? π€
Referer
header incorrectly?! π€
Referer
header incorrectly?! π€
POST /post
followed by a GET <from>
where ever I was coming from. Hmmm π§ 
POST /post
followed by a GET <from>
where ever I was coming from. Hmmm π§ 
You can see here, at least, htmx knows what the current URL is:
HX-Current-URL: https://we.loveprivacy.club/conv/vcpt7gq
Referer: https://we.loveprivacy.club/post
But the freak'n browser is setting the wrong value for
Referer
. There is simply no way to be on the /post
endpoint normally anyway.
You can see here, at least, htmx knows what the current URL is:
HX-Current-URL: https://we.loveprivacy.club/conv/vcpt7gq
Referer: https://we.loveprivacy.club/post
But the freak'n browser is setting the wrong value for
Referer
. There is simply no way to be on the /post
endpoint normally anyway.
POST /post
XHR (_that is being run by htmx_) should never, ever be Referer: .../post
π€¦ββοΈ
POST /post
XHR (_that is being run by htmx_) should never, ever be Referer: .../post
π€¦ββοΈ






POST /post
request itself. That's the Referer
that's looked up and used as the redirect.
POST /post
request itself. That's the Referer
that's looked up and used as the redirect.
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? π€See this code
g
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? π€See this code
g
\t\tif htmx.IsHTMX(r) {
\t\t\thtmx.NewResponse().
\t\t\t\tLocation(RedirectRefererURL(r, s.config, "/")).
\t\t\t\tWrite(w)
\t\t} else {
\t\t\thttp.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
\t\t}
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? π€See this code
g
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}