Title: Login redirection issues
Last modified: April 4, 2022

---

# Login redirection issues

 *  [Creatium](https://wordpress.org/support/users/creatium/)
 * (@creatium)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/login-redirection-issues/)
 * Hi. I have recently made and started using my own plugin, which rewrites all 
   URL’s in my page to have a language prefix in front of them.
 * But I noticed an issue, that seems to happen only with Theme My Login plugin:
   when login page is using lang prefix (i.e. [http://www.page.com/en/login/](http://www.page.com/en/login/))
   and when there is some login error (lets say user is not found), the error message
   is not displayed and url of page after trying to log in changes to:
    `www.page.
   com/en/login/?action=failed&username=tester&redirect_to=http%3A%2F%2Fwww.page.
   com%2Fwp-admin%2F`
 * Strangely the issue is not appearing when original URL is without prefix: [http://www.page.com/login/](http://www.page.com/login/)–
   then page is redirected to same location and error is dipslayed.
 * I am trying to fix this, but I am unable to find out how. Again, this happens
   only with your plugin (I tried same with Paid Memberships Pro – works). Can you
   maybe give some hints where the problem might be happening?
 * Worth mentioning: when debugging, I have disabled my plugins’ redirection. I 
   think there is some problem with how your plugin managed redirections, but I 
   cant find out where exactly.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Creatium](https://wordpress.org/support/users/creatium/)
 * (@creatium)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/login-redirection-issues/#post-15524535)
 * Searching through code I found tml_get_action_url filter, searched for it in 
   Google and found this question:[https://wordpress.org/support/topic/urls-under-login-and-register-forms/](https://wordpress.org/support/topic/urls-under-login-and-register-forms/)
 * Filtering out tml_get_action_url to add my custom lang prefix seems to solve 
   the error problem.

Viewing 1 replies (of 1 total)

The topic ‘Login redirection issues’ is closed to new replies.

 * ![](https://ps.w.org/theme-my-login/assets/icon-256x256.png?rev=1891232)
 * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-my-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-my-login/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-my-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-my-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-my-login/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Creatium](https://wordpress.org/support/users/creatium/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/login-redirection-issues/#post-15524535)
 * Status: not resolved