My current settings:
Edge Updates are enabled.
I'm running October with
Core: 365
Pages: 1.2.10
Translate: 1.2.4 (forceURL = 0)
My Problem:
I've created a website with two different languages (DE + EN) and I can switch languages using the language switcher without any problems.
The regular content get translated every time as intended.
The only problem is that the static pages menu sometimes shows only the menu with the original language titles and urls at both languages, which unfortunately results in a 404 as the translated english url does not work at the german website.
If i'm deleting the cache in the backend it will work again and shows the correct url and title for each language. But after some time (hours) the same problem succours again and only the menu from the default language shows at both language versions.
I'm switching languages with:
<a class="item" data-request-data="locale: 'de'" data-request="onSwitchLocale" href="#">Deutsch </a>
<a class="item" data-request-data="locale: 'en'" data-request="onSwitchLocale" href="#">English </a>
Menu:
Name: Main Menu
Code: main-menu
Menu items: all static pages
Layout:
Static menu component included
Alias: mainmenu
I include the menu like this (default static menu component behaves the same):
{% partial 'sidebar/menu-items' items=sidebarmenu.menuItems %}
My partial looks like this:
{# Custom navigation implementation that only shows 1 levels deep #}ยด
{% for item in items %}
<a href="{{ item.url }}" class="item"> {{ item.title }}</a>
{% endfor %}
Any ideas what's wrong or how I can track down what causes the issue.
Last updated