Page MenuHomePhabricator

Citoid duplicates part of url for fina.org
Open, Needs TriagePublic

Event Timeline

PrimeHunter renamed this task from duplicated to Citoid duplicates part of url for fina.org.Jun 12 2022, 5:13 PM
PrimeHunter updated the task description. (Show Details)

just noting the API call also returns the incorrect URL, so this is definitely a zotero / citoid issue, though an odd one at that...

[
  {
    "key": "RGMCCVIF",
    "version": 0,
    "itemType": "webpage",
    "tags": [],
    "title": "World Record Alert | USA’s Hunter Armstrong sets new global 50m backstroke standard",
    "websiteTitle": "FINA - Fédération Internationale De Natation",
    "url": "https://www.fina.org/news/2596440/www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard",
    "abstractNote": "Thursday night at the 2022 United States International Team Trials in Greensboro (USA) was the setting for 21-year-old Hunter Armstrong to write himself into the record books with his 23.71 setting the new 50m backstroke world record.",
    "language": "en",
    "accessDate": "2022-06-12",
    "source": [
      "Zotero"
    ]
  }
]

Rather strange, I see nothing in the page that could explain this fully. What is unusual is that webpage is not using https:// in its og:url and twitter:url

<meta name="twitter:url" content="www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard"/>
<meta property="og:url" content="www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard"/>

But the base uri is https://www.fina.org/ not https://www.fina.org/news/2596440/ so that doesn't really match the repetition of news/2596440/

Noting that this also happens when importing the item into Zotero using the Zotero browser connector.

Rather strange, I see nothing in the page that could explain this fully. What is unusual is that webpage is not using https:// in its og:url and twitter:url

<meta name="twitter:url" content="www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard"/>
<meta property="og:url" content="www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard"/>

But the base uri is https://www.fina.org/ not https://www.fina.org/news/2596440/ so that doesn't really match the repetition of news/2596440/

Well I'll be... changing the og:url to https://www.fina.org/news/2596440/world-record-alert-usas-hunter-armstrong-sets-new-global-50m-backstroke-standard resolves the issue..

To test this, I took a copy of the HTML, stripped the content and hosted it at

I then made this edit showing the differences in generated citation.

Here's guessing that zotero parses the og:url and uses that as the canonical URL for the generated cite — that being said, I'm not sure this is something we need to fix, as the Open Graph protocol states og:url should be in the format http(s)://[...]