Title: Redirection after login &#8211; does it work?
Last modified: December 3, 2017

---

# Redirection after login – does it work?

 *  Resolved [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/)
 * It seems that plugin ignore **redirect_to** parameter in a login URL? I’ve created
   a login page with shortcode wppb-login. The plugin always redirects me to the
   home page. Even if the WordPress filter **login_redirect** is defined.

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

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/#post-9747186)
 * Hello [@gioni](https://wordpress.org/support/users/gioni/),
 * Did you try adding the redirect to our shortcode: [https://www.cozmoslabs.com/docs/profile-builder-2/shortcodes/#Redirect_users_after_Login](https://www.cozmoslabs.com/docs/profile-builder-2/shortcodes/#Redirect_users_after_Login)?
 * I suggest looking into a plugin conflict. Test out if it works correctly when
   only Profile Builder is active.
 * Regards.
 *  Thread Starter [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/#post-9747532)
 * I need to redirect user dynamically based on $_GET[‘redirect_to’] parameter and
   it’s not about a plugin conflict. I checked the login form generated by the plugin
   and didn’t find the redirect_to form field in it like the default WordPress login
   form has. How should redirection work?
 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/#post-9751383)
 * Hello [@gioni](https://wordpress.org/support/users/gioni/),
 * We build the form using WordPress functions, so if you check carefully enough,
   you’ll notice that this field is present as well but it doesn’t work as you expect
   it to.
 * Anyhow, to set a redirect you need to use the shortcode: [https://www.cozmoslabs.com/docs/profile-builder-2/shortcodes/#Redirect_users_after_Login](https://www.cozmoslabs.com/docs/profile-builder-2/shortcodes/#Redirect_users_after_Login)
   
   The Pro version gives access to a [Custom Redirects](https://www.cozmoslabs.com/docs/profile-builder-2/modules/custom-redirects/)
   module that lets you setup more complex redirects.
 * To redirect based on a parameter from the URL you need to write a wrapper shortcode
   for our login shortcode that will automatically fill the redirect parameter based
   on what’s in the URL.
 * Regards.
 *  Thread Starter [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/#post-9753235)
 * Thanks for explanations! I’ll check the form on a freshly installed WP site, 
   perhaps it’s a conflict like you said.

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

The topic ‘Redirection after login – does it work?’ is closed to new replies.

 * ![](https://ps.w.org/profile-builder/assets/icon-256x256.png?rev=2961144)
 * [User Profile Builder - Beautiful User Registration Forms, User Profiles & User Role Editor](https://wordpress.org/plugins/profile-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/profile-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/profile-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/profile-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/profile-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/profile-builder/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [gioni](https://wordpress.org/support/users/gioni/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-after-login-does-it-work/#post-9753235)
 * Status: resolved