summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/public/js/taginfo.js2
-rw-r--r--web/views/layout.erb2
2 files changed, 2 insertions, 2 deletions
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();
});
diff --git a/web/views/layout.erb b/web/views/layout.erb
index 7803fdc..56ad40c 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -15,7 +15,7 @@
<div id="header_date" title="<%= h(t.taginfo.data_from_description) %>" tipsy="ne"><%= h(t.taginfo.data_from) %>: <%= @data_until %> UTC</div>
<div id="header_forms" class="no-print">
<form id="set_language" action="/switch_locale">
- <input type="hidden" id="url" name="url" value="<%= TaginfoConfig.get('instance.url') + request.path %>"/>
+ <input type="hidden" id="url" name="url" value="<%= request.path %>"/>
<select id="locale" name="locale">
<% r18n.available_locales.sort{ |a,b| a.title <=> b.title }.each do |locale| %>
<option value="<%= locale.code %>"<%= locale.code == r18n.locale.code ? ' selected="selected"' : ''%>><%= h(::Language[locale.code].native_name) %></option>