From 01673a8321baf8b8d3a9a0a5d3b4cd19da5192af Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 25 Aug 2014 17:23:40 +0200 Subject: Use pathname only instead of full URL in language switcher. --- web/public/js/taginfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/public') diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 88f3745..165b2b0 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -751,7 +751,7 @@ jQuery(document).ready(function() { } jQuery('#locale').bind('change', function() { - jQuery('#url').val(window.location); + jQuery('#url').val(window.location.pathname); jQuery('#set_language').submit(); }); -- cgit v1.2.3