Fix failing tests in IE7 by normalizing URL

IE7 includes host hame in href attribute.