Skip to content

Commit

Permalink
feat: switch language based on current path
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Dec 7, 2022
1 parent 8e07364 commit b0f4257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/components/language-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% for key, other_site in sites %}
<option value="{{ other_site.language.code }}"
title="{{ other_site.language.title }}"
data-url="https://{{ other_site.hostname }}"
data-url="https://{{ other_site.hostname }}{{ page.url }}"
{% if site.language.code == other_site.language.code %} selected {% endif %}>
{{ other_site.language.flag }} {{ other_site.language.name }}
</option>
Expand Down

0 comments on commit b0f4257

Please sign in to comment.