ruby on rails - Need to prevent special character conversion when used in address bar -
i using ruby on rails bring language conversion parameter address bar using following link
<%= url_for(controller: 'queries', action: 'index', search: @query.email, param: @query.file1, only_path: false ) %>
with file1 param being following code work google translate: #googtrans(en|vi)
in address bar switches following: %23googtrans%28en%7cvi%29
how print special characters without modifying them in address bar can picked properly?
got work on own. had put url in html , place in variables in respective spot encoding needed encoded
http://xxxx.herokuapp.com/queries?search=<%= @query.email.gsub(/@/, '%40') %>¶m=<%= @query.file1 %>
Comments
Post a Comment