diff --git a/apps/profile/templates/404-profile.php b/apps/profile/templates/404-profile.php index 2d34a9e7614ce..d2cfe557ff9eb 100644 --- a/apps/profile/templates/404-profile.php +++ b/apps/profile/templates/404-profile.php @@ -3,11 +3,14 @@ * SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ + /** @var array $_ */ /** @var \OCP\IL10N $l */ /** @var \OCP\Defaults $theme */ + // @codeCoverageIgnoreStart -if (!isset($_)) { //standalone page is not supported anymore - redirect to / +if (!isset($_)) { + // Standalone access is not supported; redirect to the root. require_once '../../../lib/base.php'; $urlGenerator = \OCP\Server::get(\OCP\IURLGenerator::class); @@ -15,16 +18,22 @@ exit; } // @codeCoverageIgnoreEnd + +$urlGenerator = \OCP\Server::get(\OCP\IURLGenerator::class); +$backUrl = $urlGenerator->linkTo('', 'index.php'); ?> - - - + + + +