Skip to content
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

Check protocol/port when determining reload for WebView #4297

Merged

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Mar 26, 2024

Summary

When determining whether the WebView should be reloaded with the current server URL, also check that the protocol (http/https) and port (8123, 443, ...) match and if not reload.

Should fix #4294 as the only difference between the user's URLs is the port and it works correctly when closing/reopening the app which forces a reload with the current URL to use for the webview. This has nothing to do with Cloudflare or the needlessly complicated network setup.

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - When determining whether the WebView should be reloaded with the current server URL, also check that the protocol (http/https) and port (8123, 443, ...) match and if not reload.
Copy link
Member

@dshokouhi dshokouhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always good to be more precise in our checks!

@dshokouhi dshokouhi merged commit 5bf22b8 into home-assistant:master Mar 26, 2024
4 checks passed
@jpelgrom jpelgrom deleted the check-protocol-port-webview branch March 27, 2024 05:33
@Gifford47
Copy link

@dshokouhi Thanks for solving this issue! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reconnection logic error (internal and external url)
3 participants