How to get the external website Url with its parameters using broswer Frame

Hi, I’m new to Vaadin and
I’m currently trying to build a Vaadin Webapp for getting the content of an external website. And I did it. In particulary I need to get the external website Url with its parameters. In order to do this I load a webpage inside a broswerFrame in vaadin. The problem is that with the vaadin instruction
“((ExternalResource) browser.getSource()).getURL()” I obtained the Url without parameters.
Is there a way to do what I need??

[color=#242729]

String url = UI.getCurrent().getSession().getAttribute("requestUrl").toString();
BrowserFrame browser = new BrowserFrame("", new ExternalResource(url));
String u = ((ExternalResource) browser.getSource()).getURL();

[/color]


Thanks.