[bug 895675] Make trailing slash optional