From 69ba2d1d66ccf30239973e0f95911658974733df Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 4 Nov 2024 10:51:56 +0100 Subject: [PATCH] make filepath relative --- packages/trace-viewer/src/ui/uiModeTraceView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/trace-viewer/src/ui/uiModeTraceView.tsx b/packages/trace-viewer/src/ui/uiModeTraceView.tsx index 71f9e2e23c..33c3afff4a 100644 --- a/packages/trace-viewer/src/ui/uiModeTraceView.tsx +++ b/packages/trace-viewer/src/ui/uiModeTraceView.tsx @@ -126,7 +126,7 @@ function formatUrl(traceURL: URL) { } function filePathToTraceURL(path: string) { - const url = new URL('/trace/file', location.href); + const url = new URL('file', location.href); url.searchParams.set('path', path); return url; }