Skip to content

Conversation

@jemmyw
Copy link
Collaborator

@jemmyw jemmyw commented May 18, 2021

No description provided.

Copy link
Contributor

@cornu-ammonis cornu-ammonis left a comment

Choose a reason for hiding this comment

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

code looks good, one tweak. I can't get a test setup going locally because of Zendesk issues

const url = ticket.url.replace("/api/v2", "/agent").replace(".json", "");

return (
<a {...props} href={url} rel="noreferrer noopener" target="_blank">
Copy link
Contributor

Choose a reason for hiding this comment

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

just in case

Suggested change
<a {...props} href={url} rel="noreferrer noopener" target="_blank">
<a {...props} href={aha.sanitizeUrl(ur)l} rel="noreferrer noopener" target="_blank">

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