diff options
Diffstat (limited to 'view/html/recipe-edit.html')
-rw-r--r-- | view/html/recipe-edit.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index 3925293..8d940f8 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -8,7 +8,7 @@ <h1>Recipe editor</h1> </header> <main> - <form action="/recipe/{{.Id}}"> + <form action="/recipe{{if ne .Id ""}}/{{.Id}}{{end}}"> <input type="hidden" name="id" value="{{.Id}}"> <p> |