fix: nextcloud iFrame mode: click on unified search result opens inner iFrame

This commit is contained in:
Sergey Mosin 2023-07-29 08:24:52 -04:00
parent 15e59ef65f
commit d5965bf1d7
2 changed files with 12 additions and 5 deletions

View file

@ -91,12 +91,12 @@ class Provider implements IProvider
$MessageCollection = $oMailClient->MessageList($oParams);
$baseURL = $this->urlGenerator->linkToRoute('snappymail.page.index');
$config = \OC::$server->getConfig();
if ($config->getAppValue('snappymail', 'snappymail-no-embed')) {
$baseURL .= '?target=';
} else {
// $config = \OC::$server->getConfig();
// if ($config->getAppValue('snappymail', 'snappymail-no-embed')) {
// $baseURL .= '?target=';
// } else {
$baseURL .= '#';
}
// }
$search = \rawurlencode($oParams->sSearch);
// $MessageCollection->totalEmails;