Hi Tim, > On 24 Aug 2022, at 21:29, Tim Smith <[email protected]> wrote: > > A follow-up question - is there a way to use a relative path so that I don't > have to hardcode the server name in the path? I'm working in Studio at the > moment but these icons will be pushed to the server at some point.
If constructing the URL dynamically is an option, the following SPARQL functions might be useful. ui:appRootUrl() returns the context path of EDG (“/” if EDG is running at the server root, like in Studio; and “/edg/” if deployed in Tomcat as edg.war). This allows making correct relative URLs that start with a “/”, which will work from anywhere within the same server. tbladmin:getConfigValue(cfg:serverURL) yields the absolute URL where EDG is running (“http://localhost:8083” in Studio). This allows making correct absolute URLs that will work from anywhere. This requires that the “Server URL” field has been correctly set in Server Configuration. Hope that helps, Richard -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/71F5C49D-5A5D-42E8-B82F-6B208B381E6B%40topquadrant.com.
