fix: Users not mentionable when not in seamless editing mode
This commit is contained in:
@@ -17,7 +17,7 @@ export default function parseDocumentSlug(url: string) {
|
||||
}
|
||||
}
|
||||
|
||||
return parsed.lastIndexOf("/doc/") === 0
|
||||
? parsed.replace(/^\/doc\//, "").split("#")[0]
|
||||
: undefined;
|
||||
const split = parsed.split("/");
|
||||
const indexOfDoc = split.indexOf("doc");
|
||||
return split[indexOfDoc + 1] ?? undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user