We've been getting reports of people clicking on links in the middle of their run and it taking them to a bad page (i.e. actually following the link /wiki/... instead of going into our handling code).
We think the reason for this is that in cases where our articleRenderer throws an error, it would fall into a backup case, which wasn't written correctly and wouldn't call e.preventDefault(). To solve this, I put that all the link handler code in a finally block. it's crude, but should prevent the bug temporarily.
We've been getting reports of people clicking on links in the middle of their run and it taking them to a bad page (i.e. actually following the link
/wiki/...
instead of going into our handling code).We think the reason for this is that in cases where our
articleRenderer
throws an error, it would fall into a backup case, which wasn't written correctly and wouldn't calle.preventDefault()
. To solve this, I put that all the link handler code in afinally
block. it's crude, but should prevent the bug temporarily.