app/Http/Controllers/SearchController.php
public function quick(ServerRequestInterface $request, Tree $tree): ResponseInterface
    {
        $query = $request->get('query', '');

        // Was the search query an XREF in the current tree?
        // If so, go straight to it.
        $record = GedcomRecord::getInstance($query, $tree);

        if ($record !== null && $record->canShow()) {
            return redirect($record->url());
        }

        return $this->general($request, $tree);
    }
public function quick(ServerRequestInterface $request, Tree $tree): ResponseInterface
    {
        $query = $request->get('query', '');

        // Was the search query an XREF in the current tree?
        // If so, go straight to it.
        $record = GedcomRecord::getInstance($query, $tree);

        if ($record !== null && $record->canShow()) {
            return redirect($record->url());
        }

        return $this->general($request, $tree);
    }
public function quick ( ServerRequestInterface $ request , Tree $ tree ) : ResponseInterface { $ query = $ request -> get ( 'query' , '' ) ; // Was the search query an XREF in the current tree? // If so, go straight to it. $ record = GedcomRecord :: getInstance ( $ query , $ tree ) ; if ( $ record !== null && $ record -> canShow ( ) ) { return redirect ( $ record -> url ( ) ) ; } return $ this -> general ( $ request , $ tree ) ; }
The "omni-search" box in the header.

@param ServerRequestInterface $request
@param Tree                   $tree

@return ResponseInterface
The omni - search box in the header .