Open anjali89r opened 3 years ago
I'm looking for a way to add the searchText entered by the user to the URL as a search query like ..url/search?q=mysearchterm. But I'm unable to access the searchText from the lib/search.vue folder. How to access this value?
searchText
..url/search?q=mysearchterm
I use this as a workaround
const search = document.getElementById('lunr-search') const searchTest = search.value
I'm looking for a way to add the
searchText
entered by the user to the URL as a search query like..url/search?q=mysearchterm
. But I'm unable to access thesearchText
from the lib/search.vue folder. How to access this value?