Skip to content

Commit 5cad5f7

Browse files
k-fishkamilogorek
andauthored
fix(ember): Fix rootURL breaking route recognition (#3166)
* fix(ember): Fix rootURL breaking route recognition Mentioned in #2977, route recognition needs the url to be correctly formatted. Since there are different location types, using formatURL should get the correct URL out for use in recognition. * Update packages/ember/addon/instance-initializers/sentry-performance.ts Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
1 parent 674eddf commit 5cad5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ember/addon/instance-initializers/sentry-performance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function _instrumentEmberRouter(
4141
let activeTransaction: Transaction;
4242
let transitionSpan: Span;
4343

44-
const url = location && location.getURL && location.getURL();
44+
const url = location && location.getURL && location.formatURL && location.formatURL(location.getURL());
4545

4646
if (macroCondition(isTesting())) {
4747
routerService._sentryInstrumented = true;

0 commit comments

Comments
 (0)