From ce55f527666e6726c811464ef341cb67742f7137 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Wed, 10 Nov 2021 22:35:17 +0000 Subject: 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/ --- src/templates/confirm_deletion.php | 2 +- src/templates/create.php | 2 +- src/templates/edit.php | 2 +- src/templates/index.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/templates/confirm_deletion.php b/src/templates/confirm_deletion.php index 2938c4b..29cd590 100644 --- a/src/templates/confirm_deletion.php +++ b/src/templates/confirm_deletion.php @@ -12,7 +12,7 @@

Bookmarks

Confirm Deletion

Back -
+ url | $bookmark->title | $bookmark->tag"); ?> diff --git a/src/templates/create.php b/src/templates/create.php index 21df9a8..7269b38 100644 --- a/src/templates/create.php +++ b/src/templates/create.php @@ -12,7 +12,7 @@

Bookmarks

Add

Back - +
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 @@

Bookmarks

Edit

Back -
+ 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 @@

- Add Bookmark + Add Bookmark

Tags