Skip to content

Fix your hosting auto events#87

Closed
adriaandotcom wants to merge 7 commits into
mainfrom
fix-your-hosting-auto-events
Closed

Fix your hosting auto events#87
adriaandotcom wants to merge 7 commits into
mainfrom
fix-your-hosting-auto-events

Conversation

@adriaandotcom

Copy link
Copy Markdown
Collaborator

No description provided.

Links with target="_self" stopped navigating when auto events was active.
collectLink adds "return false" to the onclick for links with no target or
target="_self", which cancels the browser navigation, but the saAutomatedLink
callback only navigated when the link had no target at all. So target="_self"
links sent the event and then never navigated.

The callback now uses the same target check as collectLink, so target="_self"
navigates in the same tab after the event, while target="_blank" and other
targets keep their native behaviour.

Fix for YourHosting, button "Ik wil zelf alles regelen" on
https://www.yourhosting.nl/webhosting-2/
@adriaandotcom adriaandotcom self-assigned this Jun 25, 2026
@adriaandotcom

Copy link
Copy Markdown
Collaborator Author

@claude review this PR.

@adriaandotcom

Copy link
Copy Markdown
Collaborator Author

Closing in favour of #88

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