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 2d6196b commit 77b8301Copy full SHA for 77b8301
packages/node/src/handlers.ts
@@ -124,9 +124,7 @@ function extractExpressTransactionName(
124
125
let path = '';
126
if (req.route) {
127
- // if the mountpoint is `/`, req.baseUrl is '' (not undefined), so it's safe to include it here
128
- // see https://github.com/expressjs/express/blob/508936853a6e311099c9985d4c11a4b1b8f6af07/test/req.baseUrl.js#L7
129
- path = `${req.baseUrl}${req.route.path}`;
+ path = `${req.baseUrl || ''}${req.route.path}`;
130
} else if (req.originalUrl || req.url) {
131
path = stripUrlQueryAndFragment(req.originalUrl || req.url || '');
132
}
0 commit comments