deal with links loaded via relative urls
close #1