faustedition / faust-web

Web frontend for the edition of Goethe's Faust
http://faustedition.net/
3 stars 1 forks source link

stay on search tab when initiatiing new search from /search #584

Closed thvitt closed 3 years ago

thvitt commented 3 years ago

when entering a new search on the search page, the new result page should show the same search tab as the old one.

One option would be to pass the &tab parameter through to /query and back again (i.e. adjust the search controller as well as the search js).

Alternatively, we could hijack the search field on the search page altogether and just perform the default /query?q= in a parallel background fetch, ignoring it if it redirects to /search? (since we're already there) and redirecting otherwise. This would increase response speed for continued searches, but increase server load in case someone enters a shortcut on the search page.