fix relative URL bug, external link bug