IMHO it is much cleaner to not use the $_SERVER global, but refer to the respective Magento methods. We have to compare with the escaped URL since getCurrentUrl also escapes the URL. But it makes more sense to redirect to the non-escaped version.
This should fix the redirect issue from #126. Can you confirm, @hejhog?
IMHO it is much cleaner to not use the
$_SERVER
global, but refer to the respective Magento methods. We have to compare with the escaped URL sincegetCurrentUrl
also escapes the URL. But it makes more sense to redirect to the non-escaped version.This should fix the redirect issue from #126. Can you confirm, @hejhog?