You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wp_redirect('/') after login breaks WordPress Multisite subdirectory installs #963
Several code paths hardcode wp_redirect('/') instead of resolving the current site's URL. On a Multisite subdirectory install, an absolute / always resolves to the network's root site, not the subsite the user is actually logging into. onLogout() gets this right (passes get_site_url(), which is subsite-aware) but the login/exchange paths don't.
Reproduction
Set up WordPress Multisite in subdirectory mode with at least one non-root subsite.
Configure and activate the plugin network-wide.
Log in on example.com/subsite-a/wp-login.php.
Observe the redirect lands on example.com/ (network root) instead of example.com/subsite-a/.
Related: #935, closed as stale without a confirmed root cause. Suggested fix: use admin_url() or get_site_url() in all four locations, matching onLogout().
This fix has been released as part of 6.0.0-beta.1 via #966. It is a prerelease, so please upgrade and let us know if post-login redirects now land on the right subsite.
Activity
kishore7snehil commentedon Oct 8, 2026
This fix has been released as part of 6.0.0-beta.1 via #966. It is a prerelease, so please upgrade and let us know if post-login redirects now land on the right subsite.