From 3f8a2f28ce6f65384f1b885e73ee9955c70c2ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Pavl=C3=ADk?= Date: Sat, 9 Dec 2017 15:47:03 +0100 Subject: [PATCH] link to github repos: escape query string C# (and eventual other languages whose names include URL special characters) get screwed without escaping --- app/views/users/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 5f3b64e..395edcd 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -48,7 +48,7 @@ - <%= link_to "https://github.com/search?q=user:#{@user.login}+language:#{user_rank.language}", target: '_blank' do %> + <%= link_to "https://github.com/search?" + {q: "user:#{@user.login} language:#{user_rank.language}"}.to_query, target: '_blank' do %> Repos : <% end %>