diff --git a/core.go b/core.go index df6254a..d449635 100644 --- a/core.go +++ b/core.go @@ -245,7 +245,7 @@ func (app *App) makeHTTPRouterHandlerFunc(h Controller, ms []Hook) httprouter.Ha w.WriteHeader(ctx.Response.statusCode) } if ctx.Response.redirectTo != "" { - http.Redirect(w, r, ctx.Response.redirectTo, http.StatusTemporaryRedirect) + http.Redirect(w, r, ctx.Response.redirectTo, http.StatusPermanentRedirect) } else { w.Write(ctx.Response.body) } diff --git a/template/components/form_button.go b/template/components/form_button.go index 4b451bf..658306e 100644 --- a/template/components/form_button.go +++ b/template/components/form_button.go @@ -1,8 +1,6 @@ package components type FormButton struct { - ID string - Value string Text string Icon string IsSubmit bool diff --git a/template/components/form_button.html b/template/components/form_button.html index b58a9ed..7594613 100644 --- a/template/components/form_button.html +++ b/template/components/form_button.html @@ -1,5 +1,5 @@ {{define "form_button"}} - diff --git a/template/components/form_input.go b/template/components/form_input.go index d1264ec..e27910f 100644 --- a/template/components/form_input.go +++ b/template/components/form_input.go @@ -1,14 +1,13 @@ package components type FormInput struct { - ID string - Label string - Type string - Placeholder string - Value string - Hint string - Error string - IsDisabled bool - Autocomplete bool - IsRequired bool + ID string + Label string + Type string + Placeholder string + Value string + Hint string + Error string + IsDisabled bool + IsRequired bool } diff --git a/template/components/form_input.html b/template/components/form_input.html index 6103b76..8159896 100644 --- a/template/components/form_input.html +++ b/template/components/form_input.html @@ -8,9 +8,6 @@ {{if eq .IsRequired true}} required {{end}} - {{if eq .Autocomplete false}} - autocomplete="off" - {{end}} {{if ne .Value ""}} value="{{.Value}}" {{end}}