Zoter Connector: Bug when detecting URL

Hello, I tested a translator on WanFang Medical, this is a demo link: https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK

This is the log from Zotero Connector when opening the demo link.

(3)(+0025153): Connector_Browser: onActivated for https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK

(3)(+0001834): HTTP GET moz-extension://69a3dbe3-db1b-4c79-8623-9dbcca705bc6/utilities/resource/dateFormats.json

******************** A unexpected URL is detected
(3)(+0000283): Connector_Browser: onFrameLoaded for https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK; https://medad.med.wanfangdata.com.cn/www/delivery/afr.php?zoneid=74&cb=INSERT_RANDOM_NUMBER_HERE
************************************

(3)(+0000000): Translators: Looking for translators for https://medad.med.wanfangdata.com.cn/www/delivery/afr.php?zoneid=74&cb=INSERT_RANDOM_NUMBER_HERE

(3)(+0000000): Not injecting. No translators found for [tab.url, url]: https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK , https://medad.med.wanfangdata.com.cn/www/delivery/afr.php?zoneid=74&cb=INSERT_RANDOM_NUMBER_HERE

(3)(+0000852): Translators: Looking for translators for https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK

(4)(+0000045): Translate: Binding sandbox to https://med.wanfangdata.com.cn/Paper/Detail?id=PeriodicalPaper_zhyfyx200202011&dbid=WF_QK


Zotero Connector found an ad iframe on the page, and use this ad URL(https://medad.med.wanfangdata.com.cn) to find available translators. However, the correct target URL is https://med.wanfangdata.com.cn/Paper/Detail?id.

I just search code in the Zotero Connector repo, it seems like an iframe URL popups when this iframe is activated.
Sign In or Register to comment.