fix trailing ? in links