diff --git a/www/header.inc b/www/header.inc index f909851807..8887e81699 100644 --- a/www/header.inc +++ b/www/header.inc @@ -404,7 +404,8 @@ if( !strcasecmp('Test Result', $tab) && (!isset($nosubheader) || !@$nosubheader) if( !isset($run) ) $run = $gradeRun; $useFriendlyUrls = !isset($_REQUEST['end']) && FRIENDLY_URLS; - $menuUrlGenerator = UrlGenerator::create($useFriendlyUrls, "", $id, $run, !empty($cached)); + + $menuUrlGenerator = UrlGenerator::create($useFriendlyUrls, "", $id, $gradeRun, !empty($cached)); $endParams = isset($_REQUEST['end']) ? ("end=" . $_REQUEST['end']) : ""; $tabs = array( 'Performance Summary' => $menuUrlGenerator->resultSummary($endParams)); @@ -416,7 +417,6 @@ if( !strcasecmp('Test Result', $tab) && (!isset($nosubheader) || !@$nosubheader) $gradedRunResults = $testResults->getRunResult($gradeRun, !empty($cached)); - if ($gradedRunResults->hasWebVitals()) $tabs['Web Vitals'] = $menuUrlGenerator->resultPagePHP("vitals", $endParams);