|
|
|
@ -232,8 +232,12 @@ |
|
|
|
const datasourceUrl = datasource?.config.url |
|
|
|
const qs = query?.fields.queryString |
|
|
|
breakQs = restUtils.breakQueryString(qs) |
|
|
|
if (datasourceUrl && !query.fields.path?.startsWith(datasourceUrl)) { |
|
|
|
const path = query.fields.path |
|
|
|
const path = query.fields.path |
|
|
|
if ( |
|
|
|
datasourceUrl && |
|
|
|
!path?.startsWith("http") && |
|
|
|
!path?.startsWith("{{") // don't substitute the datasource url when query starts with a variable e.g. the upgrade path |
|
|
|
) { |
|
|
|
query.fields.path = `${datasource.config.url}/${path ? path : ""}` |
|
|
|
} |
|
|
|
url = buildUrl(query.fields.path, breakQs) |
|
|
|
|