mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Revert "Fix: subdirectory deployment (#2205)"
This revers commit b8eda91005
This commit is contained in:
@@ -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