diff --git a/site/src/utils/docs.ts b/site/src/utils/docs.ts index 1a10c3e808ae8..162f94a354544 100644 --- a/site/src/utils/docs.ts +++ b/site/src/utils/docs.ts @@ -9,7 +9,7 @@ function defaultDocsUrl(): string { } // Strip the postfix version info that's not part of the link. - const i = version?.indexOf("-") ?? -1; + const i = version?.match(/[+-]/)?.index ?? -1; if (i >= 0) { version = version.slice(0, i); }