Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
1 parent
9e3bc8e64f
commit
8ec488efbd
20 files changed
+41
-42
No files matched your search
@@ -23,7 +23,7 @@ export function formatProxyUrlWithSegments(widget, endpoint, segments) {
|
||||
if (segments) {
|
||||
params.append("segments", JSON.stringify(segments));
|
||||
}
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
@@ -31,7 +31,7 @@ export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
if (queryParams) {
|
||||
params.append("query", JSON.stringify(queryParams));
|
||||
}
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function asJson(data) {
|
||||
|
||||
Reference in new issue
Block a user