<ul class="langswitcher">
{% set langobj = grav['language'] %}

{% for key, language in langswitcher.languages %}

    {% if key == langswitcher.current %}
        {% set lang_url = page.url %}
        {% set active_class = 'active' %}
    {% else %}
        {% set lang_url = base_url_simple ~ langobj.getLanguageURLPrefix(key)~langswitcher.page_route ?: '/' %}
        {% set active_class = '' %}
    {% endif %}

    <li><a href="{{ lang_url ~ uri.params }}" class="{{ active_class }}">{{  language.nativeName|capitalize }}</a></li>

{% endfor %}
</ul>

<ul class="langswitcher">
{% set langobj = grav['language'] %}

{% for key, language in langswitcher.languages %}

    {% if key == langswitcher.current %}
        {% set lang_url = page.url %}
        {% set active_class = ' active' %}
    {% else %}
        {% set lang_url = base_url_simple ~ langobj.getLanguageURLPrefix(key)~langswitcher.page_route ?: '/' %}
        {% set active_class = '' %}
    {% endif %}

    <li><a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{{  language.nativeName|capitalize }}</a></li>

{% endfor %}
</ul>

Add `external` class to avoid problems on modular pages when jquery.singlePageNav is loaded
Add `external` class to avoid problems on modular pages when jquery.singlePageNav is loaded
