Skip to content

Commit 174a203

Browse files
authored
Merge pull request #4386 from nextcloud/fix/template-preview-aspect-ratio
fix: Generate preview with proper aspect ratio for templates
2 parents 8c21f5e + 920cf96 commit 174a203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Template/CollaboraTemplateProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getCustomTemplates(string $mimetype): array {
4646

4747
return array_map(function (File $file) {
4848
$template = new Template(CollaboraTemplateProvider::class, (string)$file->getId(), $file);
49-
$template->setCustomPreviewUrl($this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $file->getId()]));
49+
$template->setCustomPreviewUrl($this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $file->getId(), 'a' => true]));
5050
return $template;
5151
}, $collaboraTemplates);
5252
}

0 commit comments

Comments
 (0)