Made the trailing slash optional