Make trailing slash optional