Fix bug with URLs without extensions