Skip to content

Commit 35af625

Browse files
Chartman123backportbot[bot]
authored andcommitted
fix: use abolute URL for form
Signed-off-by: GitHub <noreply@github.com>
1 parent f6a7a84 commit 35af625

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)