You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't load a local HTML file with querystring via WebView.src (WebView.url works but is removed) #3872
As noted here I'd like to request to not remove the WebView.url property as it's the only way to currently load a local HTML file with query parameters.
Passing ~/file.html to WebView.src works, but ~/file.html?foo=bar loads a blank page because it can't find the local file. WebView.url works perfectly for that case.
WebView.src can be altered to make it load the file successfully, but still I see no way in the current implementation to pass querystring params to the file. I really need a way to access those params in the loaded HTML file.
src should be the url that was explicitly set on the webview (and triggers a load) url should be only a getter that always provides the current url (automatically updated on redirects, navigation, etc)
Activity
NickIliev commentedon Mar 27, 2017
Related to this fix.
Should we provide a way to pass query params via src or roll-back the url property?
Ping @vakrilov , @hshristov ^^^
the-reality-engineer commentedon Apr 5, 2017
IMO, I think we should keep both properties:
srcshould be the url that was explicitly set on the webview (and triggers a load)urlshould be only a getter that always provides the current url (automatically updated on redirects, navigation, etc)lock commentedon Aug 28, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.