summaryrefslogtreecommitdiff
path: root/view/html/recipe-edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'view/html/recipe-edit.html')
-rw-r--r--view/html/recipe-edit.html2
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>