File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,9 @@ func viewRun(opts *ViewOptions) error {
8383 openURL := issue .URL
8484
8585 if opts .WebMode {
86- fmt .Fprintf (opts .IO .ErrOut , "Opening %s in your browser.\n " , openURL )
86+ if opts .IO .IsStdoutTTY () {
87+ fmt .Fprintf (opts .IO .ErrOut , "Opening %s in your browser.\n " , utils .DisplayURL (openURL ))
88+ }
8789 return utils .OpenInBrowser (openURL )
8890 }
8991 if opts .IO .IsStdoutTTY () {
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ func viewRun(opts *ViewOptions) error {
9494
9595 if opts .BrowserMode {
9696 if connectedToTerminal {
97- fmt .Fprintf (opts .IO .ErrOut , "Opening %s in your browser.\n " , openURL )
97+ fmt .Fprintf (opts .IO .ErrOut , "Opening %s in your browser.\n " , utils . DisplayURL ( openURL ) )
9898 }
9999 return utils .OpenInBrowser (openURL )
100100 }
You can’t perform that action at this time.
0 commit comments