Navigate back after clicking search result - confirm form resubmission


#1

I am using search as described here: https://getkirby.com/docs/cookbook/search

I think people often try to navigate back to the list of search results after realising the result they clicked is not the page they were after. Is there any way to prevent the following?:

Thanks


#2

Your form may be defaulting to a POST request. What happens when you use <form method="GET">?


#3

That was it, I had method="post" in my template!

Sorted now thanks!


#4

Hey macgyver,

Confirm form resubmission is considered as some kind of error or safe for my visitors? Just want to be sure about it.


#5

It’s not an error, it’s just better if visitors can return to the list of search results.