Skip to content

Commit

Permalink
Fix redirect url (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: rasel <[email protected]>
  • Loading branch information
Superm4n97 authored Sep 12, 2024
1 parent d9175f4 commit 2931c8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kubectl/bind/plugin/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ func (b *BindOptions) Validate() error {
// redirectUrl generates the redirect url for success page
// accepts string as bind.{host}
func redirectUrl(host, user, cluster string) string {
_, domain, _ := strings.Cut(host, "bind.")
return fmt.Sprintf("https://db.%s/%s/%s", domain, user, cluster)
return fmt.Sprintf("https://%s/db/%s/%s", host, user, cluster)
}

// Run starts the binding process.
Expand Down

0 comments on commit 2931c8f

Please sign in to comment.