fix baseurl issue, and fix open in new tab