Fix guide content language and language switcher context
- Change getGuidePage() to use currentLanguage instead of detectLanguage() - Add lang_switch_url template variable for proper context-aware switching - Language switcher now stays on guide page when switching languages - Guide content now displays in correct language based on URL parameter
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
{{current_lang_upper}} <i class="bi bi-chevron-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><a class="dropdown-item" href="?lang=nl&page={{homepage}}">NL</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=en&page={{homepage}}">EN</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=nl{{lang_switch_url}}">NL</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=en{{lang_switch_url}}">EN</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,8 +33,8 @@
|
||||
{{current_lang_upper}} <i class="bi bi-chevron-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><a class="dropdown-item" href="?lang=nl&page={{homepage}}">NL</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=en&page={{homepage}}">EN</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=nl{{lang_switch_url}}">NL</a></li>
|
||||
<li><a class="dropdown-item" href="?lang=en{{lang_switch_url}}">EN</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user