Pico-Search
Pico-Search copied to clipboard
Seach page is not picking the right url
My search.md
page is inside content/foobar
directory since I want make this directory searchable. According to the code in the search template foobar.twig
, location.href = '{{ "search"|link }}/' + encodeURIComponent(search_terms)
should redirect to search results page example.com/foobar/search/search-term
. But, on searching for a term on the content/foobar
page, I am redirected to the url example.com/search/search-term
; naturally giving me a 404 error.
I am using the exact code from the documentation.