polyglot
polyglot copied to clipboard
Fix bug where the default locale wasn't working
I have a really simple setup, with two locales: es
, en
, being es
the default one. I can access urls such as example.com/blog
(default locale) or example.com/en/blog
(English), but when I try example.com/es/blog
I get a 404.
I've been able to solve that by adding some extra checks. I was just hoping for you to review it and tell me what you think! Maybe I've misunderstood something about the configuration!
Can you add a quick test for this?