Hi Stiofan,
Yes, this was for a custom login page redirect. I have the redirect working fine, except when doing a ‘claim listing’ via the Business Owner link.
It redirects to my custom login page, but does not carry the /?redirect_to, with the path back to the food truck.
So for example, the normal URL that is given when claiming a listing (clicking on ?Business Owner), is something like:
http://mysite.com/gd-login/?redirect_to=http%3A%2F%2Fmysite.com%2Fplace%2Faustin%2Fpizza-2%2Fcool-pizza-place%2F%3Fgd_go%3Dclaim
When I use this redirect code
add_filter('geodir_login_url','change_geodir_login_url',10,3);
function change_geodir_login_url($login_url,$args,$gd_page_id){
//change the url to whatever you want.
$login_url = 'http://mysite.com/my-login-page';
return $login_url;}
it does redirect me to http://mysite.com/my-login-page/, but does not append the URL variables for the claimed listing – /?redirect_to=http%3A%2F%2Fmysite.com%2Fplace%2Faustin%2Fpizza-2%2Fcool-pizza-place%2F%3Fgd_go%3Dclaim
What do i need to do to have the claim listing redirect to my login page, WITH the URL variables for the listing appended?
Thanks for the help!