@@ -527,7 +527,9 @@ async function runFilesystemTarget(options) {
527
527
/** @type {Array<LH.Result> } */
528
528
const lhrs = loadSavedLHRs ( ) . map ( lhr => JSON . parse ( lhr ) ) ;
529
529
/** @type {Array<Array<[LH.Result, LH.Result]>> } */
530
- const lhrsByUrl = _ . groupBy ( lhrs , lhr => lhr . finalUrl ) . map ( lhrs => lhrs . map ( lhr => [ lhr , lhr ] ) ) ;
530
+ const lhrsByUrl = _ . groupBy ( lhrs , lhr => lhr . requestedUrl ) . map ( lhrs =>
531
+ lhrs . map ( lhr => [ lhr , lhr ] )
532
+ ) ;
531
533
const representativeLhrs = computeRepresentativeRuns ( lhrsByUrl ) ;
532
534
533
535
const targetDir = path . resolve ( process . cwd ( ) , options . outputDir || '' ) ;
@@ -538,7 +540,7 @@ async function runFilesystemTarget(options) {
538
540
const manifest = [ ] ;
539
541
// Process the median LHRs last so duplicate filenames will be overwritten by the median run
540
542
for ( const lhr of _ . sortBy ( lhrs , lhr => ( representativeLhrs . includes ( lhr ) ? 10 : 1 ) ) ) {
541
- const url = new URL ( lhr . finalUrl ) ;
543
+ const url = new URL ( lhr . requestedUrl ) ;
542
544
const fetchTimeDate = new Date ( new Date ( lhr . fetchTime ) . getTime ( ) || Date . now ( ) ) ;
543
545
const context = {
544
546
hostname : url . hostname ,
@@ -557,7 +559,7 @@ async function runFilesystemTarget(options) {
557
559
558
560
/** @type {LHCI.UploadCommand.ManifestEntry } */
559
561
const entry = {
560
- url : lhr . finalUrl ,
562
+ url : lhr . requestedUrl ,
561
563
isRepresentativeRun : representativeLhrs . includes ( lhr ) ,
562
564
htmlPath : path . join ( targetDir , htmlPath ) ,
563
565
jsonPath : path . join ( targetDir , jsonPath ) ,
0 commit comments