Issue with redirect on log in page
-
I know there was a recent thread about this here:
https://www.ads-software.com/support/topic/log-in-link-on-wp-activatephp-links-to-main-site?replies=3but since that was market resolved I am opening a new item.
In that thread the following code was provided as a possible fix to the login and homepage links on the activate page going to the main site rather than to the specific subdomain login or homepage:
add_filter('network_site_url', function($url, $path, $scheme){ if($path === 'wp-login.php?action=lostpassword'){ $url = site_url($path, $scheme); } return $url; },10,3);
However, I am not certain how to modify that code -the path for the issue I’m having is “wp-activate.php?key=” where an actual key is then concatenated at the end.
I’m not that familiar with php but I tried using that string with an asterisk wildcard at the end: “wp-activate.php?key=*” to see if I would be directed to the subdomain pages but I am not.
Is there something else I should modify to accomplish this?
- The topic ‘Issue with redirect on log in page’ is closed to new replies.