-
Notifications
You must be signed in to change notification settings - Fork 133
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
Beta Fix: Fix broken "reset password" link on site creds login screen #3363
Conversation
The issue was stripping the protocol from the URL for the label but then using that same URL for routing to the reset password view. Logic has been updated to strip the protocol for display only when needed.
This was somehow removed when the app translations were updated.
Generated by 🚫 dangerJS |
You can test the changes on this Pull Request by downloading the APK here. |
@@ -201,8 +201,9 @@ protected void setupLabel(@NonNull TextView label) { | |||
break; | |||
case WOO_LOGIN_MODE: | |||
if (mOptionalSiteCredsLayout) { | |||
String siteAddressClean = mLoginSiteUrl.replaceFirst("^(http[s]?://)", ""); |
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.
NP: Changes look good and I'll merge this, but wanted to mention that it would be good to move this logic to StringUtils
since there's more than one place we remove the protocol for display.
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.
Not sure if this change is correct. Matches what we see in GlotPress indeed, but don't think that's what we wanted? See #3363
Fixes #3349 The issue was stripping the protocol from the URL for the label but then using that same URL for routing to the reset password view. Logic has been updated to strip the protocol for display only when needed for display.
To Test
cc: @AliSoftware for a beta release
Update release notes:
RELEASE-NOTES.txt
if necessary.