summaryrefslogtreecommitdiff
path: root/src/templates/index.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/index.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/index.php')
-rw-r--r--src/templates/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/index.php b/src/templates/index.php
index ff67458..27f62b7 100644
--- a/src/templates/index.php
+++ b/src/templates/index.php
@@ -13,7 +13,7 @@
<?php if ($message) { ?>
<p class="message"><?= $message; ?></p>
<?php } ?>
- <a href="/create">Add Bookmark</a>
+ <a href="/create/">Add Bookmark</a>
<h2>Tags</h2>
<ul>
<a href="/">All</a>