Support urls without trailing slash.