fix url trailing support