Skip to content

Commit b9307cb

Browse files
committed
Fix 404 for ACL link
1 parent cc325a0 commit b9307cb

File tree

11 files changed

+19
-10
lines changed

11 files changed

+19
-10
lines changed

functions/ACL/aclCreate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclCreate
33
description: This function creates an [[ACL]] entry in the Access Control List system with the specified name.
44
oop:
5-
element: ACL
5+
element: acl
66
constructorclass: ACL
77
parameters:
88
- name: aclName

functions/ACL/aclCreateGroup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclCreateGroup
33
description: This function creates a group in the [[ACL]]. An [[ACL]] group can contain objects like players and resources. They specify who has access to the ACL's in this group.
44
oop:
5-
element: ACLGroup
5+
element: aclgroup
66
constructorclass: ACLGroup
77
parameters:
88
- name: groupName

functions/ACL/aclGet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclGet
33
description: Get the [[ACL]] with the given name. If need to get most of the ACL's, you should consider using [[aclList]] to get a table of them all.
44
oop:
5-
element: ACL
5+
element: acl
66
method: get
77
static: true
88
parameters:

functions/ACL/aclGetGroup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclGetGroup
33
description: This function is used to get the [[ACL]] group with the given name. If you need most of the groups you should consider using [[aclGroupList]] instead to get a [[table]] containing them all.
44
oop:
5-
element: ACLGroup
5+
element: aclgroup
66
method: get
77
static: true
88
parameters:

functions/ACL/aclGroupList.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclGroupList
33
description: This function returns a [[table]] of all the ACL groups.
44
oop:
5-
element: ACLGroup
5+
element: aclgroup
66
method: list
77
static: true
88
returns:

functions/ACL/aclList.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclList
33
description: This function returns a list of all the ACLs.
44
oop:
5-
element: ACL
5+
element: acl
66
method: list
77
static: true
88
returns:

functions/ACL/aclReload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclReload
33
description: This function reloads the ACL's and the [ACL groups](/reference/aclgroup) from the ACL XML file. All [[ACL]] and [ACL group](/reference/aclgroup) elements are invalid after a call to this and should not be used anymore.
44
oop:
5-
element: ACL
5+
element: acl
66
method: reload
77
static: true
88
returns:

functions/ACL/aclSave.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server:
22
name: aclSave
33
description: The ACL XML file is automatically saved whenever the [[ACL]] is modified, but the automatic save can be delayed by up to 10 seconds for performance reasons. Calling this function will force an immediate save.
44
oop:
5-
element: ACL
5+
element: acl
66
method: save
77
static: true
88
returns:

functions/ACL/hasObjectPermissionTo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server:
66
The main issue with doing this is that the Admin group is not guaranteed to exist. It also doesn't give the server admin any flexibility.
77
He might want to allow his 'moderators' access to the function you're limiting access to, or he may want it disabled entirely.
88
oop:
9-
element: ACL
9+
element: acl
1010
method: hasObjectPermissionTo
1111
static: true
1212
parameters:

web/src/components/EnhancedMarkdown.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ const { content, inline = false } = Astro.props;
1414
// TODO let's move away from MediaWiki links in the future
1515
1616
function convertMediaWikiLinks(text: string): string {
17+
const redirects: Record<string, string> = {
18+
'ACL': 'acl',
19+
};
20+
1721
return text.replace(
1822
/\[\[([^|\]#]+)(?:#([^\]]+))?(?:\|([^\]]+))?\]\]/g,
1923
(_, link, hash, text) => {
20-
const url = `/reference/${link}${hash ? `#${hash}` : ''}`;
24+
const redirectedLink = redirects[link] ?? link;
25+
const url = `/reference/${redirectedLink}${hash ? `#${hash}` : ''}`;
2126
return `[${text || link}](${url})`;
2227
}
2328
);

0 commit comments

Comments
 (0)