Skip to content

Commit

Permalink
fix(dev): prevent double URL encoding in server.open on macOS (#18443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun79 authored Oct 24, 2024
1 parent 7eeb6f2 commit 56b7176
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vite/src/node/server/openBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ async function startBrowserProcess(
if (openedBrowser) {
// Try our best to reuse existing tab with AppleScript
await execAsync(
`osascript openChrome.applescript "${encodeURI(
url,
)}" "${openedBrowser}"`,
`osascript openChrome.applescript "${url}" "${openedBrowser}"`,
{
cwd: join(VITE_PACKAGE_DIR, 'bin'),
},
Expand Down

0 comments on commit 56b7176

Please sign in to comment.