reworked url to remove trailing slash