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

Problems with translations, locale used in slug #268

@Kulgar

Description

@Kulgar

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions