diff --git a/public/language/en-GB/admin/settings/guest.json b/public/language/en-GB/admin/settings/guest.json
index 44370e3668..a0062ef75a 100644
--- a/public/language/en-GB/admin/settings/guest.json
+++ b/public/language/en-GB/admin/settings/guest.json
@@ -1,6 +1,6 @@
{
"settings": "Settings",
- "guest-settings": "Guest settings",
+ "guest-settings": "Guest Settings",
"handles.enabled": "Allow guest handles",
"handles.enabled-help": "This option exposes a new field that allows guests to pick a name to associate with each post they make. If disabled, they will simply be called \"Guest\"",
"topic-views.enabled": "Allow guests to increase topic view counts",
diff --git a/public/src/admin/settings.js b/public/src/admin/settings.js
index 591ad5d22b..de7cd48096 100644
--- a/public/src/admin/settings.js
+++ b/public/src/admin/settings.js
@@ -13,13 +13,14 @@ define('admin/settings', [
const mainHader = $('[component="settings/main/header"]');
if (headers.length > 1 && tocList.length) {
- headers.each(function () {
- const header = $(this).text();
- const anchor = header.toLowerCase()
- .replace(/ /g, '-')
- .replace(/&/g, '-')
- .trim();
- $(this).parent().attr('id', anchor);
+ headers.each(function (i) {
+ const $this = $(this);
+ const header = $this.text();
+ const anchor = $this.parent().attr('id') || `section${i + 1}`;
+ // for elements that don't have id use section{index}
+ if (anchor.startsWith('section')) {
+ $this.parent().attr('id', anchor);
+ }
tocList.append(`${header}`);
});
const offset = mainHader.outerHeight(true);
diff --git a/src/views/admin/settings/advanced.tpl b/src/views/admin/settings/advanced.tpl
index 8251181f9a..fc3fcc4b8f 100644
--- a/src/views/admin/settings/advanced.tpl
+++ b/src/views/admin/settings/advanced.tpl
@@ -3,7 +3,7 @@