fix page redirect for all browsers apart from Firefox