added user agent check to pivot on regex string replace in relation to local asset path