diff options
author | Jochen Topf <jochen@topf.org> | 2014-08-25 17:23:40 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-08-25 17:23:40 +0200 |
commit | 01673a8321baf8b8d3a9a0a5d3b4cd19da5192af (patch) | |
tree | 3cbaa0eb0bac9ddb9f6cf33fdf9a626475b834c7 /web/views | |
parent | 9f1ea7a27c34cdc1ba1eacdc6ffd8e06df5aab48 (diff) | |
download | taginfo-01673a8321baf8b8d3a9a0a5d3b4cd19da5192af.tar taginfo-01673a8321baf8b8d3a9a0a5d3b4cd19da5192af.tar.gz |
Use pathname only instead of full URL in language switcher.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/layout.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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> |