I forgot to add this follow up- part of what had me confused earlier on in 
the thread is exactly the issue mentioned above, i.e. the path is different 
in Studio and EDG. Using ui:appRootUrl also solved my issue such that my UI 
modifications worked in both Studio and EDG.

On Thursday, August 25, 2022 at 4:56:44 AM UTC-4 Richard Cyganiak wrote:

> 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/109a4261-e311-4ccc-80dc-7f850a389510n%40googlegroups.com.

Reply via email to