File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Symfony/Bundle/WebProfilerBundle/EventListener Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public function onKernelResponse(ResponseEvent $event): void
107
107
return ;
108
108
}
109
109
110
- if ($ response ->headers ->has ('X-Debug-Token ' ) && $ response ->isRedirect () && $ this ->interceptRedirects && 'html ' === $ request ->getRequestFormat ()) {
110
+ if ($ response ->headers ->has ('X-Debug-Token ' ) && $ response ->isRedirect () && $ this ->interceptRedirects && 'html ' === $ request ->getRequestFormat () && $ response -> headers -> has ( ' Location ' ) ) {
111
111
if ($ request ->hasSession () && ($ session = $ request ->getSession ())->isStarted () && $ session ->getFlashBag () instanceof AutoExpireFlashBag) {
112
112
// keep current flashes for one more request if using AutoExpireFlashBag
113
113
$ session ->getFlashBag ()->setAll ($ session ->getFlashBag ()->peekAll ());
You can’t perform that action at this time.
0 commit comments