@@ -49,7 +49,7 @@ public static void OpenInBrowserWindow(this string url, string browserPath = "",
4949 var browser = string . IsNullOrEmpty ( browserExecutableName ) ? "chrome" : browserPath ;
5050
5151 // Internet Explorer will open url in new browser window, and does not take the --new-window parameter
52- var browserArguements = ( browserExecutableName == "iexplore.exe" ? "" : " --new-window ") + ( inPrivate ? $ "{ privateArg } " : "" ) + url ;
52+ var browserArguements = ( browserExecutableName == "iexplore.exe" ? "" : url + " --new-window ") + ( inPrivate ? $ "{ privateArg } " : "" ) ;
5353
5454 var psi = new ProcessStartInfo
5555 {
@@ -66,7 +66,8 @@ public static void OpenInBrowserWindow(this string url, string browserPath = "",
6666 {
6767 Process . Start ( new ProcessStartInfo
6868 {
69- FileName = url , UseShellExecute = true
69+ FileName = url ,
70+ UseShellExecute = true
7071 } ) ;
7172 }
7273 }
@@ -93,7 +94,7 @@ public static void OpenInBrowserTab(this string url, string browserPath = "", bo
9394 if ( ! string . IsNullOrEmpty ( browserPath ) )
9495 {
9596 psi . FileName = browserPath ;
96- psi . Arguments = ( inPrivate ? $ "{ privateArg } " : "" ) + url ;
97+ psi . Arguments = url + ( inPrivate ? $ " { privateArg } " : "" ) ;
9798 }
9899 else
99100 {
@@ -107,7 +108,8 @@ public static void OpenInBrowserTab(this string url, string browserPath = "", bo
107108 {
108109 Process . Start ( new ProcessStartInfo
109110 {
110- FileName = url , UseShellExecute = true
111+ FileName = url ,
112+ UseShellExecute = true
111113 } ) ;
112114 }
113115 }
0 commit comments