Closed NTsch closed 1 year ago
Trying to retrace what is happening:
$wcharter:image-base-uri
is correctly constructed in charter.widget.xml to be http://images.monasterium.net/img/collections/AbbayeDeSaintBertin/
. This is the URL part that is missing in charter-to-publish.$wcharter:image-base-uri
is then passed to the charter-image-viewer subwidget as $constructor:image-base-uri
here.$constructor:image-base-uri
in the charter-image-viewer.widget, its value is /
.That's why the image links are broken, still trying to figure out what causes this. Manually inserting the correct value into the argument being passed to the subwidget works, so it seems the value is lost somewhere between the initial definition at the top and the subwidget.
Fixed by #1152, thank you.
Certain charters have their images broken in the charter-to-publish view because of wrong/missing URL elements. For example, https://www.monasterium.net/mom/AbbayeDeSaintBertin/a33932c7-e2c4-4e6a-8c97-809060ce76bb/charter in charter-to-publish tries to display something like
https://www.monasterium.net/00000288.png,
which should behttp://images.monasterium.net/img/collections/AbbayeDeSaintBertin/00000288.png
. Presumably originates from https://github.com/icaruseu/mom-ca/blob/master/my/XRX/src/mom/app/charter/widget/charter-image-viewer.widget.xml#L107-L124 .