diff --git a/packages/trace-viewer/src/ui/actionList.tsx b/packages/trace-viewer/src/ui/actionList.tsx
index 886df28a4c..edbec8b788 100644
--- a/packages/trace-viewer/src/ui/actionList.tsx
+++ b/packages/trace-viewer/src/ui/actionList.tsx
@@ -102,6 +102,7 @@ export const renderAction = (
{action.apiName}
{locator &&
{locator}
}
{action.method === 'goto' && action.params.url && {action.params.url}
}
+ {action.class === 'APIRequestContext' && action.params.url && {excludeBaseUrl(action.params.url)}
}
{(showDuration || showBadges) && }
{showDuration && {time || }
}
@@ -111,3 +112,8 @@ export const renderAction = (
}
>;
};
+
+function excludeBaseUrl(url: string): string {
+ const match = url.match(/^(https?:\/\/[^/]+)(.*)$/);
+ return match ? match[2] : url;
+}
\ No newline at end of file