Problem/Motivation
The Entity Mesh table includes a column labeled “Target Href” whose values are paths like strings. Currently they are rendered as plain text, forcing users to copy and paste the URL.
For usability, these values should be clickable links on HTML page displays and navigate directly to the target. However, when exporting to CSV, the value must remain plain text (no HTML/markup), preserving a “flat” export for downstream processing.
Steps to reproduce
1. Visit the view (admin listing/page display) that shows the Target Href column.
2. Observe that values are shown as plain text, not clickable.
3. Export the same view as CSV (via the CSV/Data export display) and confirm the column is present as text.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | target_href.png | 111.69 KB | eduardo morales alberti |
Issue fork entity_mesh-3544579
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
eduardo morales albertiComment #3
eduardo morales albertiComment #5
eduardo morales albertiReady to review:

Comment #6
eduardo morales albertiSolved also wrong links on D3 when clicks the nodes
Comment #7
nitinkumar_7 commentedReviewed the lattest changes and tested locally
The URL resolution looks good, using Url::fromUri() with a try/catch is the safe way to handle this and the fallback behavior is sensible.
It may not be worth making the ftp, ftps, tel, and mailto schemes clickable. Modern browsers no longer support ftp and ftps, tel links have limited usefulness on desktop, and mailto links don't provide much value.
So i would recommend restricting the clickable schemes to http and https.
Comment #8
lpeidro commentedHello Edu.
MR reviewed and functionality checked locally.
Just a suggestion regarding making the ftp, ftps, tel and mailto schemes clickable. FTP and FTPS are no longer supported by modern browsers, tel links do nothing on desktop, and mailto links add no real value in this context.
Consequently, I would suggest restricting the clickable schemes to http and https.
The merge request is ready to merge.
Comment #9
eduardo morales albertiUpdate MR to limit the ALLOWED_SCHEMES to https and http.
Thank you, @lpeidro!
Comment #10
eduardo morales albertiComment #11
eduardo morales albertiComment #15
nitinkumar_7 commentedHi @eduardo-morales-alberti
I noticed I wasn't credited for this issue. Would you mind adding issue credit for my contribution if you think it's appropriate? Thanks!
Comment #16
eduardo morales alberti@nitinkumar_7 Added to the contribution record