You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The real problem is, I think, that you can have the search box at different path levels (ie, at our site you can search from http://manas.com.ar/, http://manas.com.ar/staff, or http://manas.com.ar/staff/mgarcia). In those cases, if you want to use a relative URL you have to use them differently - or add any way to the page for declaring how many nesting levels to go back.
It's definitely doable, but I'm not that sure your helper works for all the cases. I'll give it a try - and start implementing that if works at least for a nice percentage of the cases. But I think there's more than that for this issue.
Thanks for the feedback! :)
spalladino
changed the title
support relative links with search_index_path
Support relative links with search_index_path
Apr 20, 2016
Using search_index_path I always got the absolute path back but for hosting on github a relative path is needed.
I wrote my own helper which uses link_to to get the relative path.
The text was updated successfully, but these errors were encountered: