You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently updated an octobercms site from V1 to V3. Now the migration is almost complete, but there is one thing I am not able to fix as of right now and it is the translated url for the pages. Since the translations are now based on the new multisite concept, it seems that the url translation feature does not work anymore.
So I expect that I can naviguate to /fr/historique and /en/history, but this is not the case. /en/history will return a 404, but /en/historique will be english translated page I would expect to be served from /en/history.
At the bottom of my site, I have a locale switcher which shows both languages.
[sitePicker]
==
{% for site in sitePicker.sites %}
{% if site.code == this.site.code %}
{{ ('languages.' ~ site.code) | _ }}
{% else %}
<a href="{{ site.url }}">{{ ('languages.' ~ site.code) | _ }}</a>
{% endif %}
{% if not loop.last %} | {% endif %}
{% endfor %}
Here is my multisite configuration
If I am on the /fr/historique page and that I click to switch to english, the url to which it will switch is /en/history, which leads to a 404.
Running the app on the debugger, shows that it is actually trying to translate the 404 page url.
My understanding is that the octobercms route does not have the custom url registered, so it is falling back to the 404 route.
Here are the plugins I have on my site
Plugin
Current Version
Latest Version
Blog
1.7.1
1.7.1
MailChimp
1.0.5
1.0.5
Sitemap
1.2.7
1.2.8
Translate
2.2.10
2.2.10
User
3.1.3
3.2.0
Drivers
2.0.1
2.0.1
Google Tag Manager
2.0.1
2.0.1
Fencus Google Maps Widgets
1.0.7
1.0.7
SEO Manager
5.0.6
5.0.6
Twig Extensions
2.0.5
2.0.5
Simple Contact
2.0.3
2.0.3
I suspect my problem is related to this issue #298
I have recently updated an octobercms site from V1 to V3. Now the migration is almost complete, but there is one thing I am not able to fix as of right now and it is the translated url for the pages. Since the translations are now based on the new multisite concept, it seems that the url translation feature does not work anymore.
I have a page setup like so
So I expect that I can naviguate to
/fr/historique
and/en/history
, but this is not the case./en/history
will return a 404, but/en/historique
will be english translated page I would expect to be served from/en/history
.At the bottom of my site, I have a locale switcher which shows both languages.
Here is my multisite configuration
If I am on the
/fr/historique
page and that I click to switch to english, the url to which it will switch is/en/history
, which leads to a 404.Running the app on the debugger, shows that it is actually trying to translate the 404 page url.
My understanding is that the octobercms route does not have the custom url registered, so it is falling back to the 404 route.
Here are the plugins I have on my site
I suspect my problem is related to this issue #298
I have also read and applied the migration guide
What am I missing to fix this problem?
The text was updated successfully, but these errors were encountered: