File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func IsHTMXRequest(c *fiber.Ctx) bool {
14
14
15
15
func Redirect (c * fiber.Ctx , path string ) error {
16
16
if IsHTMXRequest (c ) {
17
- c .Set ("HX-Location " , path )
17
+ c .Set ("HX-Redirect " , path )
18
18
return nil
19
19
} else {
20
20
return c .Redirect (path )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ <h1>SMTPBridge</h1>
8
8
< article class ="max-w-md mx-auto ">
9
9
< h2 > Login</ h2 >
10
10
{{block "form" .}}
11
- < form method ="post " action ="/login " hx-post ="/login " hx-swap ="outerHTML ">
11
+ < form method ="post " action ="/login " hx-post ="/login " hx-swap ="outerHTML " hx-boost =" false " >
12
12
{{csrf $}}
13
13
< label for ="username ">
14
14
Username
Original file line number Diff line number Diff line change 8
8
</ a >
9
9
</ li >
10
10
</ ul >
11
- < ul class =" block lg:hidden ">
11
+ < ul class ="block lg:hidden ">
12
12
< li class ="p-0 flex flex-items-center h-full ">
13
13
< details role ="list " dir ="rtl ">
14
14
< summary aria-haspopup ="listbox " class ="block pico-no-chevron ">
You can’t perform that action at this time.
0 commit comments