Skip to content

Commit

Permalink
fix navigating to invalid page issue[#584] (#585)
Browse files Browse the repository at this point in the history
* fix navigating to invalid page issue[#584]

* test case updated
  • Loading branch information
oguzhancvdr authored Sep 20, 2023
1 parent 18096e5 commit c9ccc44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('c-hero-details', () => {
const anchorEl = element.shadowRoot.querySelector('a');
expect(anchorEl).not.toBeNull();
expect(anchorEl.href).toBe(
`http://localhost/product-family/${mockGetRecordInfoProduct[0]}`
`http://localhost/detail/${mockGetRecordInfoProduct[0]}`
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion force-app/main/default/lwc/heroDetails/heroDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class HeroDetails extends LightningElement {
if (data[1] === 'Product__c') {
this.hrefUrl = `product/${data[0]}`;
} else {
this.hrefUrl = `product-family/${data[0]}`;
this.hrefUrl = `detail/${data[0]}`;
}
}
}
Expand Down

0 comments on commit c9ccc44

Please sign in to comment.