We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa34c05 commit 31a0f8fCopy full SHA for 31a0f8f
1 file changed
report/src/services/dataService.ts
@@ -11,7 +11,7 @@ export class DataService {
11
private baseUrl: string;
12
13
constructor(baseUrl: string) {
14
- this.baseUrl = baseUrl.replace(/\/$/, "") + "/"; // Ensure trailing slash
+ this.baseUrl = baseUrl;
15
}
16
17
async getMetadata(): Promise<BenchmarkRuns> {
@@ -73,7 +73,7 @@ export function getDataSourceConfig(): DataServiceConfig {
73
74
if (dataSource === "api" && apiBaseUrl) {
75
// API mode: use the configured API base URL (ensure trailing slash)
76
- return { baseUrl: apiBaseUrl };
+ return { baseUrl: apiBaseUrl.replace(/\/$/, "") + "/" };
77
} else {
78
// Static mode: use current origin (empty string means relative to current domain)
79
return { baseUrl: "" };
0 commit comments