JS API to get baseURL?

LabKey Support Forum (Inactive)
JS API to get baseURL? Ben Bimber  2010-12-20 09:28
Status: Closed
 
hi mark,

i believe that's going to return your relative URL, ie:

/labkey/ehr/WNPRC/EHR/clinicalEncounter.view

I'm specifically thinking of bareUrl for the situation where labkey starts from script, and that script needs to run a labkey API externally. it would need some way to figure out where to issue that query. simply doing 'localhost' wouldnt always be good enough.