magneto-debug
magneto-debug copied to clipboard
fix redirects always going to the default store main URL
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.
Changes Unknown when pulling cd63652ae88df516f573aa201748f138a8f181c7 on pschnell:master into * on madalinoprea:master*.
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?