Add support for trailing slashes