diff --git a/server.js b/server.js index 2e2ae4c712..1948b64871 100644 --- a/server.js +++ b/server.js @@ -110,7 +110,9 @@ if (argv.profile) { // Open on profile. profileServer.listen(0, host, () => { const profileFromUrl = `${profilerUrl}/from-url/${encodeURIComponent( - `http://${host}:${profileServer.address().port}/` + `http://${host}:${profileServer.address().port}/${encodeURIComponent( + path.basename(argv.profile) + )}` )}`; open(profileFromUrl, openOptions); });