spree_static_content icon indicating copy to clipboard operation
spree_static_content copied to clipboard

Problems with translations, locale used in slug

Open Kulgar opened this issue 5 years ago • 0 comments

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!

Kulgar avatar Oct 14 '19 22:10 Kulgar