Skip to content

Commit

Permalink
Encode search term in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Apr 14, 2022
1 parent 8067825 commit 0e44230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ document.addEventListener('turbolinks:load', () => {
methods: {
search(value) {
if (value.length) {
Turbolinks.visit('/search?q=' + value)
Turbolinks.visit('/search?q=' + encodeURIComponent(value))
}
}
},
Expand Down

0 comments on commit 0e44230

Please sign in to comment.