SLING-6064 : Only encode url for redirecting when url not absolute - this time checking at the right place.