Fix url issue with trailing slash