Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions report/src/services/dataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class DataService {
private baseUrl: string;

constructor(baseUrl: string) {
this.baseUrl = baseUrl.replace(/\/$/, "") + "/"; // Ensure trailing slash
this.baseUrl = baseUrl;
}

async getMetadata(): Promise<BenchmarkRuns> {
Expand Down Expand Up @@ -73,7 +73,7 @@ export function getDataSourceConfig(): DataServiceConfig {

if (dataSource === "api" && apiBaseUrl) {
// API mode: use the configured API base URL (ensure trailing slash)
return { baseUrl: apiBaseUrl };
return { baseUrl: apiBaseUrl.replace(/\/$/, "") + "/" };
} else {
// Static mode: use current origin (empty string means relative to current domain)
return { baseUrl: "" };
Expand Down
Loading