18F / jekyll_pages_api_search

DEPRECATED - Jekyll search plugin based on lunr.js and jekyll_pages_api
https://rubygems.org/gems/jekyll_pages_api_search
Other
39 stars 8 forks source link

Not using my base URL when publishing to Federalist #35

Closed maya closed 8 years ago

maya commented 8 years ago

Search works locally but not when it's published to federalist bc it doesn't use the base URL so it doesn't work.

jbarnicle commented 8 years ago

@maya I believe the {{base_url}} is working in general, but that it is breaking search. I'm pretty sure that is because the search form is not including the {{ base_url }} when composing the action for the form

https://github.com/18F/jekyll_pages_api_search/blob/master/lib/jekyll_pages_api_search/search.html

@afeld

afeld commented 8 years ago

This turned out to be a problem in the beta.18f.gov search template, rather than this gem. Fixed in https://github.com/18F/beta.18f.gov/commit/e96684fe0ef98f56e87c787c5e70b53f05d6a5a6.