Pico-Search icon indicating copy to clipboard operation
Pico-Search copied to clipboard

Seach page is not picking the right url

Open notakoder opened this issue 2 years ago • 0 comments

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.

notakoder avatar Nov 24 '22 22:11 notakoder