Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

get URL of a new page #16

Closed
lipocodes opened this issue Jun 13, 2021 · 4 comments
Closed

get URL of a new page #16

lipocodes opened this issue Jun 13, 2021 · 4 comments

Comments

@lipocodes
Copy link

Hi,

How can I get informed about the new URL (full path) when I'm inside a WebView (Flutter Web project) and I clicked on a button (on the webpage) and got transmitted to a new webpage?

Thanks,
Lior

@lipocodes lipocodes changed the title get URL of a new pahe get URL of a new page Jun 13, 2021
@adrianflutur
Copy link
Owner

adrianflutur commented Jun 13, 2021

Hi, this is currently possible using the

onPageStarted: (url),
onPageFinished: (url),

callbacks from the WebViewX widget.

Currently on Web, they only provide iframe's source (srcDoc), not the URL.
Indeed it would be a good idea to have the URL in there. I'll try to change this and notity you if it worked.

@nomanmurtaza786
Copy link

Hi, this is currently possible using the

onPageStarted: (url),
onPageFinished: (url),

callbacks from the WebViewX widget.

Currently on Web, they only provide iframe's source (srcDoc), not the URL.
Indeed it would be a good idea to have the URL in there. I'll try to change this and notity you if it worked.

Any update need URL in callback

@adrianflutur
Copy link
Owner

adrianflutur commented Jul 26, 2021

Yes, I didn't have enough time to look into it, will check out ASAP

@adrianflutur
Copy link
Owner

Done #26
You can use onPageStarted and onPageFinished to get the next url, just like on mobile.
You can get the package from github until I publish a new version on pub.dev.
Closing this.

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

No branches or pull requests

3 participants