website: fix version dropdown and generated subdomains
Signed-off-by: Jens Langhammer <jens@goauthentik.io> #4437
This commit is contained in:
parent
a73d50d379
commit
063877a615
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
baseUrl: "/",
|
baseUrl: "/",
|
||||||
onBrokenLinks: "throw",
|
onBrokenLinks: "throw",
|
||||||
favicon: "img/icon.png",
|
favicon: "img/icon.png",
|
||||||
organizationName: "BeryJu",
|
organizationName: "Authentik Security Inc.",
|
||||||
projectName: "authentik",
|
projectName: "authentik",
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
navbar: {
|
navbar: {
|
||||||
|
@ -52,10 +52,11 @@ module.exports = {
|
||||||
position: "right",
|
position: "right",
|
||||||
items: releases.map((release) => {
|
items: releases.map((release) => {
|
||||||
const subdomain = release
|
const subdomain = release
|
||||||
.replace("releases/v", "")
|
.replace(/releases\/\d+\/v/, "")
|
||||||
.replace(".", "-");
|
.replace(".", "-");
|
||||||
const label =
|
const label =
|
||||||
"Version: " + release.replace("releases/", "");
|
"Version: " +
|
||||||
|
release.replace(/releases\/\d+\/v/, "");
|
||||||
return {
|
return {
|
||||||
label: label,
|
label: label,
|
||||||
href: `https://version-${subdomain}.goauthentik.io`,
|
href: `https://version-${subdomain}.goauthentik.io`,
|
||||||
|
|
Reference in New Issue