diff --git a/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx b/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx index e2cc69b..7809ada 100644 --- a/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx +++ b/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx @@ -8,7 +8,7 @@ import { Margin } from "../../../elements/Margin"; import { SecretTitleElement } from "../SecretTitleElement"; import { TextInput } from "../../../elements/forms/TextInput"; import { combineKVPath, splitKVPath } from "./kvPathUtils"; -import { kvViewURL } from "../../pageLinks"; +import { kvEditURL } from "../../pageLinks"; import { route } from "preact-router"; import i18next from "i18next"; @@ -35,7 +35,7 @@ export class KeyValueNew extends Component { const combined = combineKVPath(secretPath, path); - route(kvViewURL(baseMount, combined.secretPath, combined.secretItem)); + route(kvEditURL(baseMount, combined.secretPath, combined.secretItem)); } catch (e: unknown) { const error = e as Error; this.errorMessageRef.current.setErrorMessage(error.message);