I need to pass GET variable after user logs in /wp-login.php wordpress login.
Here's what I've managed to figure out so far - Login redirect reference: https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
So I want link like http://somewebsite.com/wp-login.php?redirect_to=http://somewebsite.com/page/&variable=1 cause user that logs in to be redirected to http://somewebsite.com/page/?variable=1 but it drops the GET variable cause it isn't part of redirect_to
Perhaps someone could nudge me further in right direction? Maybe something with URL encoding?