fix for urls ending with /