diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php index 53cca91ced2840729250ba1c8cbdcc5baa4a383a..131b6a075d5bf70ad43bb7bda73993f396aa995f 100644 --- a/core/modules/system/src/Controller/DbUpdateController.php +++ b/core/modules/system/src/Controller/DbUpdateController.php @@ -710,6 +710,12 @@ protected function helpfulLinks(Request $request) { 'url' => Url::fromRoute('system.admin')->setOption('base_url', $base_url), ]; } + if ($this->account->hasPermission('administer site configuration')) { + $links['status-report'] = [ + 'title' => $this->t('Status report'), + 'url' => Url::fromRoute('system.status')->setOption('base_url', $base_url), + ]; + } return $links; } diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php index 3f0de14a252aec78af0fcf6b64746382dd52cd82..210e41e840d5d933908f73159932a0ee0c6fb158 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php @@ -811,8 +811,9 @@ public function testSuccessfulMultilingualUpdateFunctionality(): void { $this->assertSession()->pageTextContains('Updates were attempted.'); $this->assertSession()->linkExists('logged'); $this->assertSession()->linkExists('Administration pages'); + $this->assertSession()->linkExists('Status report'); $this->assertSession()->elementNotExists('xpath', '//main//a[contains(@href, "update.php")]'); - $this->clickLink('Administration pages'); + $this->clickLink('Status report'); $this->assertSession()->statusCodeEquals(200); }