Merge pull request #2298 from nextcloud/use-absolute-urls-on-search

Use absolute URLs for the search
This commit is contained in:
Julius Härtl
2020-09-15 09:40:00 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class BoardSearchResultEntry extends SearchResultEntry {
'',
$board->getTitle(),
'',
$urlGenerator->linkToRoute('deck.page.index') . '#/board/' . $board->getId(),
$urlGenerator->linkToRouteAbsolute('deck.page.index') . '#/board/' . $board->getId(),
'icon-deck');
}
}

View File

@@ -33,6 +33,6 @@ use OCP\Search\SearchResultEntry;
class CardSearchResultEntry extends SearchResultEntry {
public function __construct(Board $board, Stack $stack, Card $card, $urlGenerator) {
parent::__construct('', $card->getTitle(), $board->getTitle() . ' » ' . $stack->getTitle() , $urlGenerator->linkToRoute('deck.page.index') . '#/board/' . $board->getId() . '/card/' . $card->getId(), 'icon-deck');
parent::__construct('', $card->getTitle(), $board->getTitle() . ' » ' . $stack->getTitle() , $urlGenerator->linkToRouteAbsolute('deck.page.index') . '#/board/' . $board->getId() . '/card/' . $card->getId(), 'icon-deck');
}
}