Use url instead of inner text 

This will fix #915.