Is there a way to get the full URL from a TiNG-Client? application.getServerURL() only gives for example “http://localhost:8297/” without the rest like context, solutionname and stuff like that. Even if in the documentation there is written “For a NGClient this will be the url that the user sees in the browser url bar.
For Headless pure server based clients this will just be http://localhost[:port]”!
Obiously I misunderstood the tooltip of the function “application.getServerURL”. I assumed that it will return the full URL and then I created a regular expression to extract the context out of the URL. But because “application.getServerURL” only returns the first part of the URL (the server address plus the context) my regular expression failed. And on a developer you couldn’t really test these things, because you never have a “context” in developer.
I fixed my regular expression now and deployed it on a testsystem and now it delivers the context as I expected it.