Current URL from WebHTMLViewer

Is there a way to easily get the current URL within a web HTMLViewer?

Bob Keeney has been able to use a HTTPSocket to do something similar but am not sure how to use it with the HTMLViewer
https://forum.xojo.com/21006-trying-to-detect-redirect-for-webhtmlviewer

Thanks

If the WebHTMLViewerr is on a different domain as your app, you cannot access that information for security reasons.

I appreciate that Michel. Thanks.

Most probably would need to look at the WebSDK to solve this but was wondering if someone has already done something like this with an iFrame / or as Bob suggested using an HTTPSocket??? Seems like quite a few queries for the same or similar issue on the forum but can’t find any complete possible solutions.

The problem is precisely that the WebHTMLViewer is internally an HTML iFrame, and the security limitation is intrinsic to HTML, not especially Xojo Web.