<@U01JRLZH77T> In `routing-compose`, is there a wa...
# compose-web
r
@hfhbd In
routing-compose
, is there a way to get the current route (not path) from
Router.current
?
h
Given
/foo/bar
, what do you want to get?
r
Given
/foo/bar/<uuid>
I want
/foo/bar
Well, ideally:
/foo/bar/:uuid
or something like that
h
Okay, the latter
/foo/bar/:uuid
would be easier, the former possible too. Just curios, what’s the use case?
r
I'm instrumenting an application for monitoring with Sentry. The default Sentry navigation data capture uses the full URL, but I want to aggregate navigation data for the route, not the concrete path.
Using beforeNavigate you can modify the transaction name to make it more generic, so that, for example, transactions named GET /users/12312012 and GET /users/11212012 can both be renamed GET /users/:userid, so that they'll group together.