Datatable does not support 'Enhanced Domains' feature
It appears that updates will need to be made for this component for 'Enhanced Domains'. If I understand this correctly, this Salesforce feature will remove the 'lightning.force.com' from the url. (https://help.salesforce.com/s/articleView?id=sf.domain_name_enhanced_why.htm&type=5)
I noticed that datatable.js which is part of the datatable lwc references the 'lightning.force.com' url specifically.
Thank for this awesome component! Rick Arthur
Thanks for the heads up. I will look into this.
Have encountered the same issue:
Steps to reproduce the behavior:
- Install Datatable v4.0.5 in a sandbox with Enhanced Domains
- Embed a screen flow with a screen using a Datatable on a Lightning record page
- Datatable component includes a Name field and has "Show navigation links on Name fields"=TRUE
- "Open links in the same Tab" can be TRUE or FALSE (issue occurs either way)
- Click Name field link
Expected behaviour
Record should open in a new tab This works correctly in a sandbox for the same customer WITHOUT Enhanced Domains and Datatable 3.3.2
Actual behaviour
"Server not found error" - link is formatted incorrectly and does not include ".sandbox." in link to record Link that is provided in datatable: https://ABC--test.lightning.force.com/lightning/r/CustomObject__c/a5T9h000000CbqDEAS/view Link that SHOULD be provided in datatable: https://ABC--test.sandbox.lightning.force.com/lightning/r/CustomObject__c/a5T9h000000CbqDEAS/view
@creuman Thanks for the additional details.
This has been fixed in v4.0.6 but I would appreciate if someone could test and confirm for both Sandboxes and Experience Sites.
Production or Developer Version 4.0.6 Sandbox Version 4.06