fix popup url end slash