Fix redirect on thumb method which didn't work well on certain nginx and apache configuration