Closed txau closed 4 months ago
Uwazi adds a canonical URL for each page of the document viewer. This is rendered at the document header tag.
<link data-react-helmet="true" rel="canonical" href="[/en/entity/waf7l0q3trdd9529?page=42](view-source:https://summa.cejil.org/en/entity/waf7l0q3trdd9529?page=42)"/>
The problem being that when documents have different number of pages these canonical links are pointing to the wrong page of the wrong documents.
Probably this line is the culprit: https://github.com/huridocs/uwazi/blob/b433ef351fb1c56aad53c6eec58d28a1711bdd98/app/react/Viewer/PDFView.js#L110
Uwazi adds a canonical URL for each page of the document viewer. This is rendered at the document header tag.
<link data-react-helmet="true" rel="canonical" href="[/en/entity/waf7l0q3trdd9529?page=42](view-source:https://summa.cejil.org/en/entity/waf7l0q3trdd9529?page=42)"/>
The problem being that when documents have different number of pages these canonical links are pointing to the wrong page of the wrong documents.