Title: Redirection problem in a different language
Last modified: December 13, 2020

---

# Redirection problem in a different language

 *  [kirakorok](https://wordpress.org/support/users/kirakorok/)
 * (@kirakorok)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/redirection-problem-in-a-different-language/)
 * Hi!
 * The plugin direction works fine on my shop page when the user is in the English
   language.
 * When I switch to a different language, after clicking “yes” the plugin directs
   me back to the home page and not to the shop page.
 * I’m using TranslatePress plugin for the language switcher. Can you please help
   me how to fix this direction issue in the Hungarian language as well?
 * Thanks a lot!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fredirection-problem-in-a-different-language%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/redirection-problem-in-a-different-language/#post-13788379)
 * Hi [@kirakorok](https://wordpress.org/support/users/kirakorok/),
 * Does TranslatePress create separate pages for each language like WPML/Polylang
   or is it all in one page?
 * If it’s all in one page, I think what is happening is we look at the referrer
   URL (e.g. hu/shop) and try to tie it back to content on the site to prevent malicious
   redirection. If hu/shop doesn’t technically exist and is handled by som custom
   routing behind the scenes then Age Gate can’t find it so sends you to the home
   page. The way Age Gate currently handles this, it’s probably not something that
   is easily changed. The next major version should handle this which I’m hoping
   to get released either by the end of the year or very early next year – there’s
   a few bits still to do before I can even do a beta version.
 * In the meantime, I’d maybe switch to the Javascript version of age gate in the
   advanced settings as this won’t do any redirects at all and just hides itself
   when you pass the age gate.
 * Let me know if that suits
 * Thanks
    Phil

Viewing 1 replies (of 1 total)

The topic ‘Redirection problem in a different language’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

## Tags

 * [direction](https://wordpress.org/support/topic-tag/direction/)

 * 1 reply
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/philsbury/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/redirection-problem-in-a-different-language/#post-13788379)
 * Status: not resolved