-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show only host when displaying URL of a site you are trying to log-in #14486
Show only host when displaying URL of a site you are trying to log-in #14486
Conversation
Generated by 🚫 dangerJS |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APK here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @khaykov 👋 Thanks for the changes, they work pretty well.
Before we go ahead with this, I think we should just keep in mind that removing any paths from the address would probably not work so well for users that have their WordPress installation at subdirectories like https://mysite.com/blog
. Even more so for users that have multisite installations at different subdirectories.
Although these scenarios are probably not the most common, I'd bet they still happen more often than the scenario this change is addressing, but it's hard to know for sure without looking at the data, and I could be totally wrong on this.
Another option would be to only strip paths that we know for sure won't be useful for the login process, but I can't say if the required effort is worth it.
@renanferrari That's a good point, thank you! Would do you think about using XMLRPC endpoint URL for this (when available)? In theory we can just strip |
@khaykov I'm not sure if I understand your suggestion correctly, so let me check if I got it right: are you proposing to simply check if the URL string contains |
@renanferrari Thanks for your help! I implemented your suggestions, as we discussed, and tested with regular and subdir based multisites, and they seems to work pretty good :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, @khaykov!
LGTM 👍
Fixes #14319
This PR removes the path component of an URL that is displayed when you enter credentials for a self-hosted site.
To test:
Enter your account information for xyz
header.PR submission checklist:
RELEASE-NOTES.txt
if necessary.