magneto-debug icon indicating copy to clipboard operation
magneto-debug copied to clipboard

fix redirects always going to the default store main URL

Open psdevhh opened this issue 8 years ago • 2 comments

I'm running a multi store setup and have noticed, that whenever I use one of the magneto-debug utilities (like "Enable/disable template hints" etc.), I get redirected to the default store main URL, instead of the page in the store I'm currently on.

I haven't yet investigated, why _redirectReferer always redirects to the default store URL, but the changes in this commit fix that behaviour and make the redirects work as expected.

psdevhh avatar May 10 '16 03:05 psdevhh

Coverage Status

Changes Unknown when pulling cd63652ae88df516f573aa201748f138a8f181c7 on pschnell:master into * on madalinoprea:master*.

coveralls avatar May 10 '16 03:05 coveralls

Hi @pschnell,

I'm not sure if your changeset is correct. My assumptions is that current implementation is doing the same thing. _redirectReferer is identifying referring url based on HTTP_REFERER, if found is going to set it on response like you're doing.

The only difference in your commit is that you're also sending response. Maybe this line is fixing your issue?

madalinoprea avatar Sep 14 '16 07:09 madalinoprea