fix url '/' bug for safari