Hello @gioni,
Did you try adding the redirect to our shortcode: 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
(@gioni)
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?
Hello @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
The Pro version gives access to a 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
(@gioni)
Thanks for explanations! I’ll check the form on a freshly installed WP site, perhaps it’s a conflict like you said.