+ if (parse_url($search, PHP_URL_SCHEME) != '') {
+ $id = Item::fetchByLink($search);
+ if (!empty($id)) {
+ $item = Item::selectFirst(['guid'], ['id' => $id]);
+ if (DBA::isResult($item)) {
+ $a->internalRedirect('display/' . $item['guid']);
+ }
+ }
+ }
+
+ if (!empty($_GET['search-option']))