title: wordpress multisite password reset sub domain redirect to same url issue
body: <p>After trying to reset password wordpress multisite sub domain(e.g sub.example.com), it redirects user to main website(e.g example.com instead of sub.example.com) 
  I found a plugin here that seems solved problem for some people but I'm getting this error:
  The email could not be sent.
  Possible reason: your host may have disabled the mail() function.</p>
  
  <p>Note:It works without this plugin but having redirect to main site, it means reset password function works fine without using this plugin but to solve url redirection to related subdomain I'd like to use this plugins so after activating the plugin</p>
  
  <p>PHP 7.0.25
  Wordpress multi site version: 4.9.1-0
  Server: Debian 9
  Mail: SendGrid</p>
  
  <p>Any idea how to fix this?</p>