@@ -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" ? "" : url + " --new-window ") + ( inPrivate ? $ "{ privateArg } " : "" ) ;
52+ var browserArguements = ( browserExecutableName == "iexplore.exe" ? "" : " --new-window ") + ( inPrivate ? $ "{ privateArg } " : "" ) + url ;
5353
5454 var psi = new ProcessStartInfo
5555 {
@@ -66,8 +66,7 @@ public static void OpenInBrowserWindow(this string url, string browserPath = "",
6666 {
6767 Process . Start ( new ProcessStartInfo
6868 {
69- FileName = url ,
70- UseShellExecute = true
69+ FileName = url , UseShellExecute = true
7170 } ) ;
7271 }
7372 }
@@ -94,7 +93,7 @@ public static void OpenInBrowserTab(this string url, string browserPath = "", bo
9493 if ( ! string . IsNullOrEmpty ( browserPath ) )
9594 {
9695 psi . FileName = browserPath ;
97- psi . Arguments = url + ( inPrivate ? $ " { privateArg } " : "" ) ;
96+ psi . Arguments = ( inPrivate ? $ "{ privateArg } " : "" ) + url ;
9897 }
9998 else
10099 {
@@ -108,8 +107,7 @@ public static void OpenInBrowserTab(this string url, string browserPath = "", bo
108107 {
109108 Process . Start ( new ProcessStartInfo
110109 {
111- FileName = url ,
112- UseShellExecute = true
110+ FileName = url , UseShellExecute = true
113111 } ) ;
114112 }
115113 }
0 commit comments