Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Problems with translations, locale used in slug #268

Open
Kulgar opened this issue Oct 14, 2019 · 0 comments
Open

Problems with translations, locale used in slug #268

Kulgar opened this issue Oct 14, 2019 · 0 comments

Comments

@Kulgar
Copy link

Kulgar commented Oct 14, 2019

I installed spree_i18n and spree_globalize in my spree 3.7 app with spree_static_content.

I created a page About with slug '/about'.

I have set my application with classic i18n, following the official spree guide. So, I access pages like this:

domain.com/about -> this one will be in English (default language)
domain.com/fr/about -> this one will be in French

But, when I access domain.com/fr/about I get: "page not found" error.

I looked at the log and I found that spree_static_content is trying to find a page with slug "/fr/about" instead of just "/about".

Is this an expected behavior? Should I set '/fr/about' as French slug? I find that a little bit weird to have the locale included in the slug... Why the gem doesn't only take the path after the ':locale' param as slug to be searched?

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant