diff --git a/clicktoedit/handlers.go b/clicktoedit/handlers.go
index a9e7541..cde00ed 100644
--- a/clicktoedit/handlers.go
+++ b/clicktoedit/handlers.go
@@ -17,6 +17,7 @@ var demoUser user = user{
func Handlers(prefix string, mux *http.ServeMux) {
mux.HandleFunc(prefix+"/", index)
+ mux.HandleFunc(prefix, index)
mux.HandleFunc(prefix+"/contact/1", putUser)
mux.HandleFunc(prefix+"/contact/1/edit", editForm)
}
diff --git a/clicktoedit/templates.templ b/clicktoedit/templates.templ
index b9c5818..f3192c5 100644
--- a/clicktoedit/templates.templ
+++ b/clicktoedit/templates.templ
@@ -24,7 +24,7 @@ templ Form(u user) {
}
diff --git a/clicktoedit/templates_templ.go b/clicktoedit/templates_templ.go
index 83fff3b..2f0736b 100644
--- a/clicktoedit/templates_templ.go
+++ b/clicktoedit/templates_templ.go
@@ -572,7 +572,7 @@ func Form(u user) templ.Component {
if err != nil {
return err
}
- _, err = templBuffer.WriteString(" hx-get=\"/click-to-edit/contact/1\"")
+ _, err = templBuffer.WriteString(" hx-get=\"/click-to-edit\"")
if err != nil {
return err
}
diff --git a/shared/layout.templ b/shared/layout.templ
index db3a5a0..41ea22b 100644
--- a/shared/layout.templ
+++ b/shared/layout.templ
@@ -29,7 +29,7 @@ templ Layout(title string) {
}
-
+
@Nav()
{ children... }
diff --git a/shared/layout_templ.go b/shared/layout_templ.go
index ca0981c..0d5cd90 100644
--- a/shared/layout_templ.go
+++ b/shared/layout_templ.go
@@ -169,16 +169,7 @@ if err != nil {
return err
}
// Element (standard)
- _, err = templBuffer.WriteString("")
+ _, err = templBuffer.WriteString("")
if err != nil {
return err
}