Title: Parametric Login Redirection
Last modified: February 9, 2017

---

# Parametric Login Redirection

 *  [dornstudio](https://wordpress.org/support/users/dornstudio/)
 * (@dornstudio)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/parametric-login-redirection/)
 * Hi there,
 * I have multiple login forms (one in a modal, one on a static page). For the modal,
   I don’t want to redirect the user upon login. For the login form on the static
   page, I would like to redirect the user…and I would like to redirect them based
   on a URL parameter that I set.
 * For example…
 * `~/login/?redirect_to={my url_encode string}`
 * …would redirect the user to the URL set in the paramenter `redirect_to`
 * Could you please let me know if there’s a filter/hook that I can use to redirect
   a user upon login for a specific form?
 * Thanks in advance!

Viewing 1 replies (of 1 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/parametric-login-redirection/#post-8790961)
 * Hi,
 * I’m not 100% this would work, but it might be possible to filter _lwa\_ajax_ 
   to do this. You can see it in use in login-with-ajax.php.

Viewing 1 replies (of 1 total)

The topic ‘Parametric Login Redirection’ is closed to new replies.

 * ![](https://ps.w.org/login-with-ajax/assets/icon-256x256.png?rev=976165)
 * [Login With Ajax - Fast Logins, 2FA, Redirects](https://wordpress.org/plugins/login-with-ajax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-with-ajax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-ajax/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-ajax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-ajax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-ajax/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/parametric-login-redirection/#post-8790961)
 * Status: not resolved