From 4bb5e69c89cb07dc620044dd39655e98e67455a8 Mon Sep 17 00:00:00 2001 From: Hannes Hertach Date: Thu, 20 Aug 2026 08:18:16 +0200 Subject: [PATCH] fix(ew-setup): use canvas editor path in sidekick editUrlPattern Point the generated sidekick config at https://da.live/canvas#/... so the sidekick opens the canvas editor instead of the default DA editor. Co-Authored-By: Claude Opus 4.8 (1M context) --- test/unit/ew-setup/utils.test.js | 4 ++-- tools/ew-setup/ew-setup.js | 2 +- tools/ew-setup/utils.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/ew-setup/utils.test.js b/test/unit/ew-setup/utils.test.js index c82e575..da739fc 100644 --- a/test/unit/ew-setup/utils.test.js +++ b/test/unit/ew-setup/utils.test.js @@ -99,7 +99,7 @@ describe('buildConfigWithEwEnabled', () => { }); describe('hasCorrectSidekickConfig', () => { - const PATTERN = 'https://da.live/#/{{org}}/{{site}}{{pathname}}'; + const PATTERN = 'https://da.live/canvas#/{{org}}/{{site}}{{pathname}}'; it('returns true when editUrlPattern matches', () => { expect(hasCorrectSidekickConfig({ editUrlPattern: PATTERN })).to.be.true; }); @@ -115,7 +115,7 @@ describe('hasCorrectSidekickConfig', () => { }); describe('buildUpdatedSidekickConfig', () => { - const PATTERN = 'https://da.live/#/{{org}}/{{site}}{{pathname}}'; + const PATTERN = 'https://da.live/canvas#/{{org}}/{{site}}{{pathname}}'; it('creates bare minimum config when existingJson is null', () => { const result = buildUpdatedSidekickConfig(null); expect(result).to.deep.equal({ project: 'Experience Workspace Project', editUrlPattern: PATTERN }); diff --git a/tools/ew-setup/ew-setup.js b/tools/ew-setup/ew-setup.js index 9224587..2a964c9 100644 --- a/tools/ew-setup/ew-setup.js +++ b/tools/ew-setup/ew-setup.js @@ -354,7 +354,7 @@ class EwSetupApp extends LitElement { } _renderStep2() { - const editUrlPattern = 'https://da.live/#/{{org}}/{{site}}{{pathname}}'; + const editUrlPattern = 'https://da.live/canvas#/{{org}}/{{site}}{{pathname}}'; if (this._sidekickStatus === 'loading') { return html` diff --git a/tools/ew-setup/utils.js b/tools/ew-setup/utils.js index 1d2f040..3b53701 100644 --- a/tools/ew-setup/utils.js +++ b/tools/ew-setup/utils.js @@ -26,7 +26,7 @@ export function buildConfigWithEwEnabled(existingJson) { return result; } -const SIDEKICK_EDIT_URL = 'https://da.live/#/{{org}}/{{site}}{{pathname}}'; +const SIDEKICK_EDIT_URL = 'https://da.live/canvas#/{{org}}/{{site}}{{pathname}}'; export function hasCorrectSidekickConfig(json) { return json?.editUrlPattern === SIDEKICK_EDIT_URL;