-
Notifications
You must be signed in to change notification settings - Fork 85
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
Unable to navigate to a page by their translated url #752
Comments
Having the same issue with build: 3.7.6, trying to find out the cause. |
@flyingbaba I assume with build 3.7.6 you are talking about the version of OctoberCMS? Do you recall if you updated your version of the translate-plugin at the same time? What what was the version of translate-plugin before and after you updated? I want to try to narrow it down and find the bug myself if possible. |
Yes, I meant the OctoberCMS version. But actually I found the issue and right now it is working as expected. My issue was related to EN language because at first I set the Locale to English - Great Britain, and with http://localhost/en - I could not access it. Changing it to English United States helped and right now it is working as expected with /en url prefix. I guess in case of English GB I should use the /en-gb prefix. Now sure, not tested. But with other locales like: /lt /lv it is also working fine. |
@lunfel btw, I got a very good advice from another source to have no locale prefix at the default language. (/fr) in your case. All other langs might have them if no custom domain is used. |
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: