URL context/container/project path on the java side

LabKey Support Forum (Inactive)
URL context/container/project path on the java side Jon (LabKey DevOps)  2017-09-14 15:56
Status: Closed
 
Hi Matt,

Have you tried using LABKEY.ActionURL.getContainer() to get the container?

Also, have you considered using the LABKEY.ActionURL.buildURL() function instead? If you use that, you don't need to provide the BaseServerURL or the contextPath since the system will know to apply those?

More information can be on these here:

https://www.labkey.org/Documentation/wiki-page.view?name=url
https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.ActionURL.html

Regards,

Jon