I am trying to redirect user from https to http if user request nonsecure page from https. I got solution for same here, see solution provided by @user2432030 or @Johnboy
If secure URL has GET
parameter like
https://example.com/catalogsearch/result/?ref=abd&q=demo
then _getCurrentUnsecureUrl
returns URL
http://example.com/catalogsearch/result/
means nonsecure URL looses all GET parameter which break results.
How to fix _getCurrentUnsecureUrl
function so it will return correct http URL?
PS. If anyone have better solution for my real problem ie. redirecting user from https to http if page is nonsecure.