wp_login_form won’t redirect
I’m trying to change this particular part in order to redirect after login to a specific page on my site. Let’s say as an example: example.com/test. I replaced the "’/?s=&category=&location-address=&a=true’" part with the absolute path of the page i want to redirect to, but that doesn’t seem to do it. It just keeps redirecting to the frontpage. Anything i’m missing here?
$result .= wp_login_form( array( 'redirect' => get_home_url().'/?s=&category=&location-address=&a=true', 'form_id' => 'ait-login-form-widget', 'echo' => false, 'remember' => false,) );
I followed this tutorial: https://www.ait-themes.club/knowledge-base/how-to-change-login-redirecting/