[Bug Report] Double slash in Notifications link
-
Hello, and thank you for the great plugin.
I’m a happy Wordfence user.
Before I explain the issue, here is my environment:- WordPress version: 6.8.1
- Site type: Multisite
- Wordfence version: 8.0.5 (latest)
- Wordfence activation: Network-activated
While viewing Dashboard > Notifications in the Wordfence panel, I clicked on the message:
3 issues found in most recent scan
At that moment, I was redirected to the login screen, and no matter how many times I logged in, I was sent back there again — a login loop.
I inspected the link in developer tools and found the following structure (note: domain changed to
example.comfor clarity):<a href="https://example.com//wp-admin/network/admin.php?page=WordfenceScan">3 issues found in most recent scan</a>As you can see, there are two slashes (
//) beforewp-admin.
In my environment, this combination withreauth=1results in a login loop.
Here’s the redirected URL I’m seeing:https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2F%2Fwp-admin%2Fnetwork%2Fadmin.php%3Fpage%3DWordfenceScan&reauth=1The Scan tab in the sidebar does not have this issue, so it seems that only the Notifications section generates a double-slash URL.
(If I manually replace the double slash with a single slash, the page loads without any issues.)Since the link is malformed, I believe this is something that needs to be addressed within Wordfence.
While double slashes are usually tolerated on single-site setups, they can cause login issues in multisite environments with stricter authentication, likereauth=1.I would appreciate it if this could be corrected in a future update, so the double slash doesn’t occur.
Thank you for reading. 😊
The topic ‘[Bug Report] Double slash in Notifications link’ is closed to new replies.