Fix issue with album and artist search page
Currently, the artist and album search pages have an interesting bug when searching through pages and then applying searches.
Steps to replicate
- Go to open.audio
- Go to the artist search page
- Go to page 2
- Type in a search for an artist like "Omri Lahav"
What is expected?
The artist should appear as they definitely exist
What happens?
The artist does not appear
This is because the page is updated when the pagination is used, which means the form submission is actually searching for page 2 of the paginated search results. This MR introduces a simple fix to reset the value of page
when the form is submitted so that any new search term automatically defaults to the first page.