website: fix version dropdown and generated subdomains

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

#4437
This commit is contained in:
Jens Langhammer 2023-01-15 17:23:33 +01:00
parent a73d50d379
commit 063877a615
No known key found for this signature in database

View file

@ -11,7 +11,7 @@ module.exports = {
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/icon.png",
organizationName: "BeryJu",
organizationName: "Authentik Security Inc.",
projectName: "authentik",
themeConfig: {
navbar: {
@ -52,10 +52,11 @@ module.exports = {
position: "right",
items: releases.map((release) => {
const subdomain = release
.replace("releases/v", "")
.replace(/releases\/\d+\/v/, "")
.replace(".", "-");
const label =
"Version: " + release.replace("releases/", "");
"Version: " +
release.replace(/releases\/\d+\/v/, "");
return {
label: label,
href: `https://version-${subdomain}.goauthentik.io`,