diff --git a/packages/app-shell/src/app-shell.js b/packages/app-shell/src/app-shell.js index 2118c94622f39bb3dadc15105b119d555c9744cf..68235e6059d7ec03c971be327d1d749c8e4cdc53 100644 --- a/packages/app-shell/src/app-shell.js +++ b/packages/app-shell/src/app-shell.js @@ -726,14 +726,22 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) { return html``; const elm = this._createActivityElement(act); - elm.setAttribute("entry-point-url", this.entryPointUrl); - elm.setAttribute("lang", this.lang); - // add subscriptions to the provider component + // add subscriptions for the provider component if (act.subscribe !== undefined) { elm.setAttribute("subscribe", act.subscribe); } + // only add the entry-point-url attribute if it isn't subscribed + if (act.subscribe === undefined || !act.subscribe.includes("entry-point-url:")) { + elm.setAttribute("entry-point-url", this.entryPointUrl); + } + + // only add the lang attribute if it isn't subscribed + if (act.subscribe === undefined || !act.subscribe.includes("lang:")) { + elm.setAttribute("lang", this.lang); + } + return elm; }