Skip to content

Commit

Permalink
trying to fix broken ui language links when using base_href, related to
Browse files Browse the repository at this point in the history
  • Loading branch information
henriyli committed Feb 23, 2016
1 parent 8e6741d commit 0152a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/topbar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="language"><span class="navigation-font">|</span>
{% for langcode, langdata in languages %}
{% if request.lang != langcode %}
<a id="language-{{ langcode}}" class="navigation-font" href="//{{ request.requesturi|replace({("/#{request.lang}/"): "/#{langcode}/"}) }}"> {{langdata.name}}</a>
<a id="language-{{ langcode}}" class="navigation-font" href="{{ request.langurl|replace({("#{request.lang}/"): "#{langcode}/"}) }}"> {{langdata.name}}</a>
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit 0152a0a

Please sign in to comment.