summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-08 22:13:03 +0200
committerxengineering <me@xengineering.eu>2023-04-08 22:13:03 +0200
commitbb8be468855d520bb2bf474657fbcfb3387bcc0a (patch)
tree0d5ace4083c7dab041a74d6c0184cb825738799a
parentf49ef61b9aeadf22a43b728c6b348f09b6c29804 (diff)
downloadceres-bb8be468855d520bb2bf474657fbcfb3387bcc0a.tar
ceres-bb8be468855d520bb2bf474657fbcfb3387bcc0a.tar.zst
ceres-bb8be468855d520bb2bf474657fbcfb3387bcc0a.zip
Fix links
-rw-r--r--data/templates/recipe.html2
-rw-r--r--data/templates/recipe_confirm_deletion.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/recipe.html b/data/templates/recipe.html
index 972a8bf..348a44d 100644
--- a/data/templates/recipe.html
+++ b/data/templates/recipe.html
@@ -16,7 +16,7 @@
<main>
{{.Html}}
- <a href="./recipe/edit?id={{.Id}}"><button>edit</button></a>
+ <a href="/recipe/edit?id={{.Id}}"><button>edit</button></a>
{{ template "footer.html" }}
</main>
diff --git a/data/templates/recipe_confirm_deletion.html b/data/templates/recipe_confirm_deletion.html
index 08c981d..f19901c 100644
--- a/data/templates/recipe_confirm_deletion.html
+++ b/data/templates/recipe_confirm_deletion.html
@@ -19,7 +19,7 @@
<form action="/recipe/confirm-deletion?id={{.Id}}" method="POST">
<button style="background-color:red" type="submit">delete</button>
</form>
- <a href="/recipe?id={{.Id}}"><button>cancel</button></a>
+ <a href="/recipe/edit?id={{.Id}}"><button>cancel</button></a>
{{ template "footer.html" }}
</main>
</body>