Skip to content

ECTO-2679 - Support deep linking to PDP by internal ID or technical name - #170

Merged
Jannik (qysp) merged 1 commit into
epic/ECTO-2267from
feature/ECTO-2679
Jun 18, 2026
Merged

Jannik (qysp) merged 1 commit into
epic/ECTO-2267from
feature/ECTO-2679

Conversation

@qysp

Copy link
Copy Markdown
Collaborator

…tion with the iframe

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for deep-linking into the Extension Store product detail page (PDP) using either an internal ID or a technical name by passing an identifier via history.state and exposing it to the store iframe/channel handshake.

Changes:

  • Extend the extension-store channel handshake context with an optional navigateToExtension identifier derived from window.history.state.
  • Adjust the sw.extension.store.detail route to redirect into the catch-all store route while forwarding the identifier via history.state.
  • Update the dashboard “statistics promotion” card to route to sw.extension.store.detail using the technical name (and adapt tests accordingly).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Resources/app/administration/src/module/sw-extension-store/service/extension-store-channel.service.ts Adds navigateToExtension to the handshake payload based on history.state.
src/Resources/app/administration/src/module/sw-extension-store/index.js Reworks store detail routing to redirect and forward an identifier via history.state.
src/Resources/app/administration/src/module/sw-dashboard/component/sw-dashboard-statistics-promotion-card/index.js Switches navigation to the store detail route using the technical name directly.
src/Resources/app/administration/src/module/sw-dashboard/component/sw-dashboard-statistics-promotion-card/sw-dashboard-statistics-promotion-card.spec.js Updates routing expectations and removes now-obsolete behavior tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qysp
Jannik (qysp) merged commit bbc6b77 into epic/ECTO-2267 Jun 18, 2026
3 checks passed
@qysp
Jannik (qysp) deleted the feature/ECTO-2679 branch June 18, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants