I need the URL of my current application because I need to generate a link to another component of my website which is located on a subpath of my URL (e.g. the VAADIN application is under http://localhost:8080 and the other component is under http://localhost:8080/widget/?someCode=1
I want to provide the option to copy the URL to clipboard so you can paste it to OBS. How do I programatically get the “http://localhost:8080/” portion of that URL?
though handling that in JavaScript now is actually the better approach as I’m calling JavaScript afterwards anyways to put the found url into clipboard. So I just altered that functionality to also fetch the url and do the splicing