Add support for trailing slash for url