This function onTransformRouteUrl() allows you to change the route URL before it is sent to Atatus. This function takes original URL as a param and return modified URL.

Example

Transforms the URL:
  • Converts the URL string to a URL object to easily manipulate its components.
  • Replaces numeric segments in the path with :id, which is useful for standardizing URL paths in routes.
  • Moves the query parameter tab to the end of the path if it exists, formatting it as tab-{value}.