(function () { "use strict"; var path = window.location.pathname; if (path.indexOf("/oidc/") !== -1) { return; } if (!/\/ui\/vault\/auth(?:\/|$)/.test(path) && !/\/ui\/?$/.test(path)) { return; } var params = new URLSearchParams(window.location.search); var current = (params.get("with") || "").replace(/\/$/, ""); if (current === "netkingdom" || current === "keycape") { return; } params.set("with", "netkingdom/"); window.location.replace( window.location.pathname + "?" + params.toString() ); })();