Fix failing tests in IE7 by normalizing URL

IE7 includes host hame in href attribute.
Merge pull request #2755 from tricknotes/fix-failing-test-in-ie7

Fix failing tests in IE7 by normalizing URL