final Anchor loginAnchor = new Anchor(""); // or new Anchor(); doesn't work either
String URL = userService.createLoginURL(requestUri);
loginAnchor.setHref(URL);
loginAnchor.setText("Login1");
However, I did notice something interesting. Whenever the URL starts by http:// or https:// this is when the problem occurs. If I set the url to something like "www.google.com" it works fine.
I thought great that's my problem solved, I'll just remove the "https://" from the URL string, however when I do this, string URL is simply appended to the current url location !
I can't believe I'm getting bugged down by something apparently so simple ! Is this a bug or am I simply doing something obviously wrong which I can't figure out?
Thanks for your help in advance :-)