Skip to content

Fix duplicate article links#11

Merged
jsoningram merged 1 commit intomainfrom
jingram/fix-duplicate-article-links
Apr 13, 2026
Merged

Fix duplicate article links#11
jsoningram merged 1 commit intomainfrom
jingram/fix-duplicate-article-links

Conversation

@jsoningram
Copy link
Copy Markdown
Collaborator

@jsoningram jsoningram commented Apr 13, 2026

Fix duplicate click handling where both the internal help page and public help page was opened


Note

Medium Risk
Changes link click behavior inside the Zendesk iframe by intercepting clicks and forcing window.open, which could affect navigation, popup blocking, or event handling if the widget behavior changes.

Overview
Rewrites Zendesk article anchor clicks to avoid duplicate navigation after updating their href.

When an article link is remapped, the code now adds a one-time capture-phase click handler that prevents Zendesk’s default/internal handlers and explicitly opens the rewritten URL in a new tab (noopener,noreferrer).

Reviewed by Cursor Bugbot for commit 9c7b527. Bugbot is set up for automated code reviews on this repo. Configure here.

@jsoningram jsoningram merged commit a9d8e4e into main Apr 13, 2026
2 checks passed
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.

1 participant