diff --git a/modules/custom/az_publication/az_publication.module b/modules/custom/az_publication/az_publication.module index 69d1bcb3bc..ffd985d2a7 100644 --- a/modules/custom/az_publication/az_publication.module +++ b/modules/custom/az_publication/az_publication.module @@ -221,7 +221,9 @@ function az_publication_node_view(array &$build, EntityInterface $entity, Entity } // Handle file link if available. if (!empty($entity->field_az_publication_media->entity->field_media_az_document->entity)) { - $blob->itemlink = $entity->field_az_publication_media->entity->field_media_az_document->entity->createFileUrl(TRUE); + // @todo Remove urldecode() if we figure out a better way to prevent + // encoded URLs from getting double-encoded by CiteProc. + $blob->itemlink = urldecode($entity->field_az_publication_media->entity->field_media_az_document->entity->createFileUrl(TRUE)); } $additionalLinks = [];