Skip to content

Commit 51a9cd6

Browse files
authored
Merge pull request #3182 from nextcloud/backport/3181/stable5.2
[stable5.2] fix: use abolute URL for form
2 parents f6a7a84 + d1abf9a commit 51a9cd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Search/FormsSearchResultEntry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
class FormsSearchResultEntry extends SearchResultEntry {
1717
public function __construct(Form $form, IURLGenerator $urlGenerator) {
18-
$formURL = $urlGenerator->linkToRoute('forms.page.views', ['hash' => $form->getHash(), 'view' => 'submit']);
19-
$iconURL = $urlGenerator->getAbsoluteURL(($urlGenerator->imagePath(Application::APP_ID, 'forms-dark.svg')));
18+
$formURL = $urlGenerator->getAbsoluteURL($urlGenerator->linkToRoute('forms.page.views', ['hash' => $form->getHash(), 'view' => 'submit']));
19+
$iconURL = $urlGenerator->getAbsoluteURL($urlGenerator->imagePath(Application::APP_ID, 'forms-dark.svg'));
2020
parent::__construct($iconURL, $form->getTitle(), $form->getDescription(), $formURL, 'icon-forms');
2121
}
2222
}

0 commit comments

Comments
 (0)