Skip to content

"Fixed" URL problems #2699.#2704

Merged
knirirr merged 4 commits into
devfrom
invalid_links_2699
Jan 27, 2026
Merged

"Fixed" URL problems #2699.#2704
knirirr merged 4 commits into
devfrom
invalid_links_2699

Conversation

@knirirr
Copy link
Copy Markdown
Contributor

@knirirr knirirr commented Jan 26, 2026

This will deal with #2699, at the risk of XSS issues. But, if we don't convert text into links then we're bound to get a ticket about links not being clickable. What are your thoughts, @prakhyatox ?

Comment thread src/components/Records/Record/AdditionalInfo/DatasetArray.vue Dismissed
@knirirr knirirr requested a review from prakhyatox January 26, 2026 16:40
Copy link
Copy Markdown
Contributor

@prakhyatox prakhyatox left a comment

Choose a reason for hiding this comment

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

Adding new tag with URL in the name, the text is still converting to URL

Image

@knirirr
Copy link
Copy Markdown
Contributor Author

knirirr commented Jan 27, 2026

After adding new tag, still text is converting to URL.

That's what's supposed to happen. I changed the code from the old version of "if there's http in the code, make the whole thing into a link" to "if there's a valid URL in the text turn only that into a link". To see this, try e.g.

"This is the most awesome website: https://fairsharing.org"

...in one of these fields.
The question is then: Is it worse to have this with its potential risks or have users complain they "can't click on links"?

@knirirr knirirr requested a review from prakhyatox January 27, 2026 09:15
@knirirr knirirr merged commit fa03ebf into dev Jan 27, 2026
10 of 11 checks passed
@knirirr knirirr deleted the invalid_links_2699 branch January 27, 2026 10:23
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.

3 participants