Get webview current url

Get webview current url
0.0 0

#1

Hi,

How to get the current webpage url of the webview?

Thank you…


#2

@nite, @slackmoehrle - I couldn’t find any method to get the url of current loaded webpage in webview , is it not possible to do so?


#3

Don’t you already know what you loaded? Sorry I’m confused why you would need to get it. Do you have a use case I could understand?


#4

Yes i know the url i load in a webview. But there are other links in the webpage, so when the user clicks on any link, the webpage changes and so the url.

So i want to get the new url of the page the user is currently on. So i can do some actions depending on it.

Eg - when the user reaches a success page on the webview, i want to do some actions, so i need to get the url to confirm wether user reached tht page or not…


#5

I understand. I don’t see anything in the public API.

Not sure if there is a member variable or something that might be useful, perhaps look in the source.