If i write http://domain.com/wp-login.php?redirect_to=http://domain.com/specificpage/?parameter1=dog¶meter2=dog¶meter3=cat
in the url address bar (to make the login page redirect to a specific page with parameters) and login.
I get redirected to the right page but only with first parameter (http://domain.com/specificpage/?parameter1=dog
). the other two parameters are stripped from the url.
How can i solve that?
Btw – the parameters are acceptable on this site (set in the functions file with add_custom_query_vars
so that’s not the problem).
2 Answers
I think you should encode the & to avoid potential conflicts:
http://domain.com/wp-login.php?redirect_to=http://domain.com/specificpage/?parameter1=dog&parameter2=dog&parameter3=cat