Problems with search and pagination

Hey!

I am new with Kirby and so I hope it is just a small problem!
I have a search site, wehre the results displayed with a pagination.
The problem I have is when i am on the secound site (of the pagination (site:2)) and i type new serach, with doesnt need a secound site it course an error, because it doesnt jump atomaticly back to the first page.

Thank you very much in advance for your answer!

Do you have an action attribute in your form? What does it look like?

Thanks for the fast reply!

I don’t have a action attribute. I have just a input tag with a type = “submit”.

<input id="suchfeldEingabe" size="8" placeholder="Suche" type="search" name="q" value="<?php echo esc($query) ?>">
<input id="suchfeldButton" type="submit" value="Suchen">

Your form element should have an action attribute with the URL of the search page, something like:

<form action="<?= $page->url() ?>">
</form>

Perfekt! that worked!

Thanks a lot!!