Title: problem with redirects when using multiple languages
Last modified: October 13, 2022

---

# problem with redirects when using multiple languages

 *  [lcdservices](https://wordpress.org/support/users/lcdservices/)
 * (@lcdservices)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-redirects-when-using-multiple-languages/)
 * We’re using Weglot for language translation — currently just English (default)
   and Spanish. When a user switches to Spanish, that prepends ‘/es’ to the URL 
   path — e.g. `https://mysite.org/es/my-account` — which should then persist as
   the user navigates the site.
 * We are finding that on login, logout, and account creation, we’re losing the 
   language, so it reverts to English. This is because those actions run through
   the WPRUS synchronization process before sending the user to the intended destination,
   and the language selection is lost. We’ve tried using the wp_redirect hook to
   capture the redirection but it appears WPRUS handles that redirection in a way
   that bypasses that filter.
 * I reviewed and tested some of the WPRUS hooks, but haven’t found any that seem
   to provide access to the post-sync redirection. Any suggestions?
    -  This topic was modified 3 years, 7 months ago by [lcdservices](https://wordpress.org/support/users/lcdservices/).

The topic ‘problem with redirects when using multiple languages’ is closed to new
replies.

 * ![](https://ps.w.org/wp-remote-users-sync/assets/icon-256x256.png?rev=2260728)
 * [WP Remote Users Sync](https://wordpress.org/plugins/wp-remote-users-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-remote-users-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-remote-users-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-remote-users-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-remote-users-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-remote-users-sync/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [lcdservices](https://wordpress.org/support/users/lcdservices/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/problem-with-redirects-when-using-multiple-languages/)
 * Status: not resolved