8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3bc93 commit c32e1a4Copy full SHA for c32e1a4
packages/nextjs/src/client/routing/appRouterRoutingInstrumentation.ts
@@ -129,7 +129,8 @@ export function appRouterInstrumentNavigation(client: Client): void {
129
130
function transactionNameifyRouterArgument(target: string): string {
131
try {
132
- return new URL(target, 'http://some-random-base.com/').pathname;
+ // We provide an arbitrary base because we only care about the pathname and it makes URL parsing more resilient.
133
+ return new URL(target, 'http://example.com/').pathname;
134
} catch {
135
return '/';
136
}
0 commit comments