How to have relative urls in form actions?

I do have a form: <% form_tag "\search", method:'GET' %>, but the project is going to be deployed in a subfolder for some instance, and so the search page is not found.

I have set :relative_links, true, and also tried to set http_prefix (which I would rather not do), but still the action gets resolved as absolute url.

Any tips on how to tackle this?

Never mind, the problem was caused by rogue javascript in the project, hijacking the submit…