From 92500e810f8adbb8410d1f1891d6eebb6521ea17 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 20 Jul 2022 23:55:50 +0000 Subject: [PATCH] Identify the login page explicitly by the page title Signed-off-by: Christopher Ng --- core/Controller/LoginController.php | 6 +++++- core/templates/layout.guest.php | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index ff2cb641f88..3694e672977 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -201,12 +201,16 @@ class LoginController extends Controller { $parameters = [ 'alt_login' => OC_App::getAlternativeLogIns(), + 'pageTitle' => $this->l10n->t('Login'), ]; $this->initialStateService->provideInitialState('core', 'countAlternativeLogins', count($parameters['alt_login'])); return new TemplateResponse( - $this->appName, 'login', $parameters, 'guest' + $this->appName, + 'login', + $parameters, + TemplateResponse::RENDER_AS_GUEST, ); } diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 980d9abb7c4..432bc4e8601 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -7,7 +7,10 @@ data-requesttoken=""> - <?php p($theme->getTitle()); ?> + <?php + p(!empty($_['pageTitle']) ? $_['pageTitle'] . ' – ' : ''); + p($theme->getTitle()); + ?> getiTunesAppId() !== '') { ?> -- 2.39.5