resolve entry link when url is relative (fix #181)