FAQBrowser MonitoringIs there a way to see hash routing in pages?

Atatus ignores any hash route in the URL, so you will not see them in the pages. If you want to see hash route in the pages, then you can do this by changing request url in the payload before sending to Atatus. You can modify the payload through function onBeforeSend as follows.

atatus.onBeforeSend(function (payload) {
    if (payload && payload.request && payload.request.url) {
      payload.request.url = payload.request.url.replace('/#/', '/').replace('#/', '/');
    }
    return true; // Return false here to abort the send
});

Ionic Apps

For Ionic Apps, you can remove parts before "/www/" and move the hash route to part of the URL path.

atatus.onBeforeSend(function (payload) {
    if (payload && payload.request && payload.request.url) {
        var url = payload.request.url;

        // Remove anything before /www/
        var index = url.indexOf("/www/");
        if (index > 0) {
            url  = 'https://www.mydomain.com' + url.substring(index);
        }

        // Replace hash with slash
        payload.request.url = url.replace('/#/', '/').replace('#/', '/');
    }
    return true;
});