Merge pull request #2298 from nextcloud/use-absolute-urls-on-search
Use absolute URLs for the search
This commit is contained in:
@@ -35,7 +35,7 @@ class BoardSearchResultEntry extends SearchResultEntry {
|
|||||||
'',
|
'',
|
||||||
$board->getTitle(),
|
$board->getTitle(),
|
||||||
'',
|
'',
|
||||||
$urlGenerator->linkToRoute('deck.page.index') . '#/board/' . $board->getId(),
|
$urlGenerator->linkToRouteAbsolute('deck.page.index') . '#/board/' . $board->getId(),
|
||||||
'icon-deck');
|
'icon-deck');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,6 @@ use OCP\Search\SearchResultEntry;
|
|||||||
|
|
||||||
class CardSearchResultEntry extends SearchResultEntry {
|
class CardSearchResultEntry extends SearchResultEntry {
|
||||||
public function __construct(Board $board, Stack $stack, Card $card, $urlGenerator) {
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user