Support for trailing slashes in URL

- Added support for trailing slashes.