Skip to content

Commit

Permalink
feature: keep query params while searching (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Feb 16, 2024
1 parent 4ae2221 commit a0adb8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/js/controllers/search_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export default class extends Controller {

searchParams(query) {
let params = {
...Object.fromEntries(new URLSearchParams(window.location.search)),
q: query,
global: false,
}
Expand Down

0 comments on commit a0adb8b

Please sign in to comment.