diff --git a/arduino-ide-extension/src/browser/sketch-factory.ts b/arduino-ide-extension/src/browser/sketch-factory.ts index 364c0d6b..2a50aa61 100644 --- a/arduino-ide-extension/src/browser/sketch-factory.ts +++ b/arduino-ide-extension/src/browser/sketch-factory.ts @@ -51,7 +51,7 @@ void loop() { } ` }); const location = new URL(window.location.href); - location.searchParams.set('sketch', sketchFile.toString()); + location.searchParams.set('sketch', sketchDir.toString()); const hash = await this.fileSystem.getFsPath(sketchDir.toString()); if (hash) { location.hash = hash;