We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de21562 + 7508e00 commit 86ee484Copy full SHA for 86ee484
1 file changed
client/cmd/apps.go
@@ -2,7 +2,6 @@ package cmd
2
3
import (
4
"fmt"
5
- "net/url"
6
"os"
7
"strings"
8
"time"
@@ -142,15 +141,12 @@ func AppOpen(appID string) error {
142
141
return err
143
}
144
145
- u, err := url.Parse(app.URL)
146
-
147
- if err != nil {
148
- return err
+ u := app.URL
+ if !(strings.HasPrefix(u, "http://") || strings.HasPrefix(u, "https://")) {
+ u = "http://" + u
149
150
151
- u.Scheme = "http"
152
153
- return webbrowser.Webbrowser(u.String())
+ return webbrowser.Webbrowser(u)
154
155
156
// AppLogs returns the logs from an app.
0 commit comments