Jump to content

strange empty bd for ajax requests with redirect


bernhard
 Share

Recommended Posts

This is not a specific request and might be no issue, just sharing what I observed and asking if that's maybe something that can easily be improved?

Today I got a dump like this for my ajax request:

R8vzitS.png

This is the url hook used:

wire()->addHook('/test/', function () {
  bd('test!');
  return true;
});

And this is how I fired the request in the devtools:

fetch('/test');

note that I'm using "/test" as url (without a trailing slash).

If I use the correct url the dump works as expected.

Now obviously this is not a bug on tracys side, but I'm wondering if tracy can do anything about that?

This is how the request looks in the debug bar:

d17VFP8.png

As you can see there are two requests, which makes sense, but if there are two requests shouldn't the second one have the correct dump? Or could it somehow show a warning that a wrong endpoint has been used to make it more obvious not to forget about trailing slash yes/no?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...