Fix: subEntityId not passed to app when deeplink clicked from within target channel - #3084
Draft
Prasad-MSFT with Copilot wants to merge 2 commits into
Draft
Fix: subEntityId not passed to app when deeplink clicked from within target channel#3084Prasad-MSFT with Copilot wants to merge 2 commits into
Prasad-MSFT with Copilot wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
… deeplink navigation within same channel When a deeplink with subEntityId is clicked from within the same channel on Teams desktop/web, the host sends a 'load' message instead of doing a full reload. The SDK's LoadContext didn't have subEntityId, so it was being ignored. - Add `subEntityId` to `LoadContext` interface - Add `subPageId` to `ResumeContext` interface - Update `convertToResumeContext` to map `subEntityId` → `subPageId` - Add tests for new fields in teamsAPIs.spec.ts and app.spec.ts Closes #3083
Copilot
AI
changed the title
[WIP] Fix subEntityId not passed in deep link from target channel
Fix: subEntityId not passed to app when deeplink clicked from within target channel
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Teams desktop/web, clicking a deeplink (with
subEntityIdin context) from within the same channel where the tab is already open causes the host to send aloadmessage to the running tab rather than doing a full reload. The SDK'sLoadContextinterface lacked asubEntityIdfield, so the value was silently dropped — leavingcontext.page.subPageIdundefined. Mobile always does a full reload, so it was unaffected.Main changes in the PR:
ResumeContext— addedsubPageId?: stringso apps usingregisterOnResumeHandlerreceive the sub-page navigation targetLoadContext(deprecated) — addedsubEntityId?: stringfor parity; documented to point consumers towardResumeContext.subPageIdconvertToResumeContext(handlers.ts) — mapsloadContext.subEntityId→resumeContext.subPageIdBefore / after (app using
registerOnResumeHandler):Validation
Validation performed:
9249tests pass; only pre-existingumdExportParityfailures due to missing build artifact)Unit Tests added:
Yes — added tests in
teamsAPIs.spec.tsandapp.spec.tscovering:registerOnLoadHandlerreceivessubEntityIdfrom theloadmessageregisterOnResumeHandlerreceivessubPageIdmapped fromsubEntityId(framed and frameless)subPageIdisundefinedwhensubEntityIdis absent from the load contextEnd-to-end tests added:
No
Additional Requirements
Change file added:
No
Next/remaining steps:
subEntityIdin theloadmessage payload when resuming a tab via a deeplink. This SDK change is a necessary precondition, but the fix is only effective once the host sends the field.