-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Cleanup old IE/edge properties and implement unsupported browser error page #26358
Conversation
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.
Looks good! :)
Do you think we should offer some additional info like which browser wpuld work? But then we also need to specify version numbers and it gets nerdy fast.
So I think it's fine like you did it! :)
Yes, that was my question and why I asked for your advice :) |
This comment has been minimized.
This comment has been minimized.
So, I can build a check based on our browserlist, but it's not feature-aware. It's version-aware. So some old FF versions might still be comptible with what we use, but using this method will redirect everyone that is not STRICTLY using one of the browser that is within our browserlist config into this "unsupported" page. Anyone have a better idea? Maybe just show a warning and only redirect IE? cc @juliushaertl @PVince81 @ChristophWurst @eneiluj @danxuliu |
5336565
to
11db327
Compare
38d6f9f
to
c599fe3
Compare
c599fe3
to
46ecd09
Compare
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
46ecd09
to
2d98cd1
Compare
I believe this change may have broken the login flow in Android (maybe iOS too). See the following video: simplescreenrecorder-2022-10-21_15.59.17.mp4As seen in the video, the webview just goes to the Dashboard instead of completing the login flow. The Android app uses the Android system webview, as a reference. |
Confirming, setting |
Another option wouold be adding the webflow user agent to the supported browsers... what is the user agent of such? |
After some testing, it looks like the unsupported browser page completely discards the initially loaded URL (in this case
This seems difficult. We have two different ways of creating user agents:
|
So what can we do here then? Improve the browser warning to redirect correctly? |
That is needed, yes. Because even if we change the Android app to use the default browser instead of a Webview (and thus login flow v2), if the default browser is outdated the same problem will occur and users will not be able to login. If the browser warning redirects to the original URL, the login should theoretically be possible afterwards. This is still a UX problem, as every Android user will likely see the warning every time they add an account, but at least they will be able to log in. Another option is to disable the outdated warning for the |
cc @skjnldsv on this then :) |
Are you setting something specific to the headers that we could use maybe?
Well, it's a warning, they can bypass it. In any case, this si why we merge such things early, to catch them! Nice found @AlvaroBrey 🎉 |
We could add a bypass if the server as debug mode enabled too
Yep, will need to know how the user agents behave for branded or not. |
Right now the user cannot bypass it, as the login flow URL (with its included tokens) is lost on the redirection.
This is why I suggested to bypass the check on
Right now we're adding |
Good call, then we should keep the redirect too :)
I would like something a bit more standard than an url.
Let's see what I can do :) |
Maybe we could just load this on default template, and not login/maintenance/error/twofactor authentifications pages. Let's see what I can do here :) |
Fix in #34741 |
The message gets narrowed a bit, we only show recommendations for mobile apps if you're on a mobile and for sektop browsers if you're on a desktop machine.
Ref #20855