Change link.origin with link.host for compatibility with firefox.

I found that link.origin crashed with firefox : 'undefined method'. 
I changed it for link.host and I needed to remove 'https://' from urls in tests.