Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Implemented feature to remove the trailing slash from the domain url
Juned Khan34fef4aaadf0
diff --git a/cli/packages/cmd/login.go b/cli/packages/cmd/login.goindex c629130a44..f8d3972336 100644--- a/cli/packages/cmd/login.go+++ b/cli/packages/cmd/login.go@@ -73,7 +73,6 @@ var loginCmd = &cobra.Command{return}}-//override domaindomainQuery := trueif config.INFISICAL_URL_MANUAL_OVERRIDE != "" && config.INFISICAL_URL_MANUAL_OVERRIDE != util.INFISICAL_DEFAULT_API_URL {@@ -322,6 +321,8 @@ func DomainOverridePrompt() (bool, error) {)options := []string{PRESET, OVERRIDE}+ //trim the '/' from the end of the domain url+ config.INFISICAL_URL_MANUAL_OVERRIDE = strings.TrimRight(config.INFISICAL_URL_MANUAL_OVERRIDE, "/")optionsPrompt := promptui.Select{Label: fmt.Sprintf("Current INFISICAL_API_URL Domain Override: %s", config.INFISICAL_URL_MANUAL_OVERRIDE),Items: options,@@ -380,7 +381,8 @@ func askForDomain() error {if err != nil {return err}-+ //trimmed the '/' from the end of the self hosting url+ domain = strings.TrimRight(domain, "/")//set api and login urlconfig.INFISICAL_URL = fmt.Sprintf("%s/api", domain)config.INFISICAL_LOGIN_URL = fmt.Sprintf("%s/login", domain)