Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change attribute binding to property binding in GenericLink #17684

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

rmch91
Copy link
Contributor

@rmch91 rmch91 commented Jul 26, 2023

Closes: https://jira.tools.sap/browse/CXSPA-3978

Changed attribute binding to property binding for target property in link html element in GenericLinkComponent.
Appears that in a case of usage of routerLink directive attribute binding of target property might not work as expected. Angular routerLink directive is designed to handle navigation and it takes precedence over the "target" attribute.
This change was introduced in https://github.com/SAP/spartacus/pull/15770/files#diff-be88e447f5abfc2f491bd2620e288d65bdae23c59931bd397a3376bf97bb426f and related to "Enabling strict mode for storefrontlib" so seems like that change was introduced only to avoid errors in template after strict mode enabling.
So i changed it back to [target] with a fallback to "_self" if target was not specified.

@rmch91 rmch91 requested a review from a team as a code owner July 26, 2023 12:38
@github-actions github-actions bot marked this pull request as draft July 26, 2023 12:38
@rmch91 rmch91 marked this pull request as ready for review July 26, 2023 14:44
@cypress
Copy link

cypress bot commented Jul 26, 2023

3 flaky tests on run #41103 ↗︎

0 119 2 0 Flakiness 3

Details:

Merge 7c35019 into 321b332...
Project: spartacus Commit: 3a0228ad8f ℹ️
Status: Passed Duration: 08:49 💡
Started: Jul 26, 2023 2:59 PM Ended: Jul 26, 2023 3:08 PM
Flakiness  cypress/e2e/ssr/pages.core-e2e.cy.ts • 3 flaky tests • SSR

View Output Video

Test Artifacts
SSR > should render homepage Output Screenshots
SSR > should render PLP Output Screenshots
SSR > should render PDP Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@rmch91 rmch91 merged commit 8a29feb into develop-6.4.x Jul 26, 2023
22 checks passed
@rmch91 rmch91 deleted the feature/CXSPA-3978 branch July 26, 2023 15:43
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.

2 participants