Skip to content

Commit 2e72efe

Browse files
authored
Merge pull request #11183 from nextcloud/bugfix/10765/fix-link-for-update-notifications
Fix the link and anchor for the update notifications
2 parents 7168749 + 57ef1d3 commit 2e72efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/updatenotification/lib/Notification/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function prepare(INotification $notification, $languageCode): INotificati
108108
$notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']]));
109109

110110
if ($this->isAdmin()) {
111-
$notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index') . '#updater');
111+
$notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index', ['section' => 'overview']) . '#version');
112112
}
113113
} else {
114114
$appInfo = $this->getAppInfo($notification->getObjectType());

settings/templates/settings/admin/overview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
</div>
6161

62-
<div class="section">
62+
<div id="version" class="section">
6363
<!-- should be the last part, so Updater can follow if enabled (it has no heading therefore). -->
6464
<h2><?php p($l->t('Version'));?></h2>
6565
<p><strong><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" rel="noreferrer noopener" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></strong></p>

0 commit comments

Comments
 (0)