Redirect after login
By default, my Vantage 4.1.0 site redirects after login, which is fine.. except its redirecting to the wrong URL.
If I'm on mydomain.com/news/ and login, I get redirected to mydomain.com/whatever-the-latest-news-post-is/
I've found the issue to be in includes/menus.php with the following:
Code:
wp_login_url( get_permalink() )
I would like to override that behaviour, but I've found that making my own includes/menus.php in my child theme doesn't work. I have put the following in my child themes functions.php:
Code:
global $wp;
$current_url = home_url(add_query_arg(array(),$wp->request));
So that I could change includes/menus.php in my child theme to read:
Code:
wp_login_url( $current_url )
But it seems that my child themes includes/menus.php isn't being read.
So, can you either let me know how to allow my child themes includes/menus.php to work, or, fix the code in the original Vantage theme, and release in the next update?
Thanks in advance.