We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42322
    • 5 Posts
    Hi, I'd developed an English/Spanish site using Babel extra, it's almost done but the English translations.

    My client wants to realease the Spanish version and to work with translations later.

    I unpublish all the resources in "en" context, set "es" context default and it works fine until you try with english setted browser. It tries hard to redirect you to English and it shows 404 error.

    How can I do to disable temporarily this context or how can I force temporarily redirect to default context?

    Thanks in advance. [ed. note: lizetnm last edited this post 5 years, 8 months ago.]
      • 46886
      • 1,154 Posts
      Temporarily you could use a redirect on your 404 page, that wouldn't be a permanent fix of course.

      Here is the snippet location, I just implemented it and it works great

      https://gist.github.com/intersel/442a55761b6df02334590f4db0bd2abe

      Alternatively you might be able to fix a special error page for these? Not sure how though