Skip to content

Can't load a local HTML file with querystring via WebView.src (WebView.url works but is removed) #3872

Closed

Description

@EddyVerbruggen

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.

Activity

  1. NickIliev commented on Mar 27, 2017

    @NickIliev
    Contributor

    Related to this fix.
    Should we provide a way to pass query params via src or roll-back the url property?

    Ping @vakrilov , @hshristov ^^^

  2. the-reality-engineer commented on Apr 5, 2017

    @the-reality-engineer
    Contributor

    IMO, I think we should keep both properties:

    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)

  3. added this to the 3.0 milestone on May 1, 2017
  4. lock commented on Aug 28, 2019

    @lock

    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.

  5. locked and limited conversation to collaborators on Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions