Title: Selective redirect
Last modified: August 30, 2016

---

# Selective redirect

 *  [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/)
 * We have a shopping cart that asks for users to login. The issue is that TML redirects
   the login user to the set redirection path. We want this 90% of the time, just
   not from the cart.
 * Anyway we can allow a URL based loging redirect?
    Like: /login/?redirect_to=<?
   ph home_url(); ?>/cart
 * I know we do that now, but TML overrides it.
 * [https://wordpress.org/plugins/theme-my-login/](https://wordpress.org/plugins/theme-my-login/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471038)
 * TML shouldn’t override a direct **redirect_to** parameter in the request.
 *  Thread Starter [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471039)
 * Soo why is it then?
 * IF i use a URL with the redirect_to it still pushes the user to the specified
   redirect on the TML redirect option for that user level. If i shut TML off the
   redirect_to is fine.
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471052)
 * Is the **redirect_to** parameter either ‘/wp-admin’ or ‘profile.php’?
 *  Thread Starter [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471068)
 * No, trying to push them back to the cart review page on a shopping cart (Woo 
   Commerce).
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471073)
 * Do you have the Custom Redirection module enabled?
 *  Thread Starter [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471075)
 * We did. But since shut it off.
 *  Plugin Author [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * (@jfarthing84)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471077)
 * When you visit a URL with the redirect_to param set, can you check the Login 
   form source to see if the redirect_to hiodden field is set appropriately?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Selective redirect’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeff Farthing](https://wordpress.org/support/users/jfarthing84/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/selective-redirect/#post-6471077)
 * Status: not resolved