php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Persist messages after js redirect

Open aland opened this issue 8 years ago • 2 comments

I am redirecting some pages using top.location in javascript, but this unfortunately clears any debugbar message I'd previously added. I thought stackData() may help but cannot get it to work. Is it possible to use stackData() with javascript redirects, or is there another way?

aland avatar Jul 03 '16 16:07 aland

I don't think so. You can add storage, so that you can inspect previous request (using the browse button), but not automatically. Can't you redirect with PHP?

barryvdh avatar Jul 04 '16 06:07 barryvdh

Possibly, I'm working on an existing codebase and can't get PHP redirects working immediately (server error but nothing is logged). I'll have a look at storage.

aland avatar Jul 04 '16 22:07 aland