Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language selector at header should show the same page #14

Open
avdata99 opened this issue Dec 20, 2022 · 0 comments
Open

Language selector at header should show the same page #14

avdata99 opened this issue Dec 20, 2022 · 0 comments

Comments

@avdata99
Copy link
Member

avdata99 commented Dec 20, 2022

Switching the lang selector always point to homepage of the selected language.
It should point to the same page in the selected language

Check this
https://github.com/squidfunk/mkdocs-material/blob/master/material/partials/header.html#L60

{% for alt in config.extra.alternate %}
  <li class="md-select__item">
    <a href="{{ alt.link | url }}" hreflang="{{ alt.lang }}" class="md-select__link">
      {{ alt.name }}
     </a>
   </li>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant