summaryrefslogtreecommitdiff
path: root/src/templates/edit.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-11-10 22:35:17 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-11-10 22:35:17 +0000
commitce55f527666e6726c811464ef341cb67742f7137 (patch)
tree537e94255655327fa1834db41d9b973d378c8345 /src/templates/edit.php
parentf130f495e54a890c0fe3c8f790a8e48a54f41e02 (diff)
Add trailing slash to URLs to prevent redirect
The Apache configuration redirects requests with out a trailing slash. It does a redirect without preserving the http method. E.g. a POST /store redirects to GET /store/
Diffstat (limited to 'src/templates/edit.php')
-rw-r--r--src/templates/edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/edit.php b/src/templates/edit.php
index 5318c2c..639ce27 100644
--- a/src/templates/edit.php
+++ b/src/templates/edit.php
@@ -12,7 +12,7 @@
<h1>Bookmarks</h1>
<h2>Edit</h2>
<a href="/">Back</a>
- <form action="/update" method="POST">
+ <form action="/update/" method="POST">
<input type="hidden" name="id" value="<?= $bookmark->id; ?>"/>
<?php require_once('form_fields.php'); ?>
<button type="submit">Update</button>