Skip to content

Commit c5760df

Browse files
authored
fix linkry redir for acm-managed links (#409)
1 parent cb5f0ae commit c5760df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/linkryEdgeFunction/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function getSlugToQuery(path: string, host: string): string {
4141
if (hostParts.length > 1 && host !== "acm") {
4242
const short = hostParts[0];
4343
if (shortToOrgCodeMapper[short]) {
44-
return `${shortToOrgCodeMapper[short]}#${path}`;
44+
return `${shortToOrgCodeMapper[short]}#${path}`.replace("A01#", "");
45+
// A01 is ACM, so there's no prefix.
4546
}
4647
}
4748

0 commit comments

Comments
 (0)