fix empty URI processing

This commit is contained in:
ghost 2023-08-05 21:31:33 +03:00
parent 7ddb47619a
commit b3ec1d42a7

View File

@ -117,6 +117,12 @@ class Helper {
}
}
// URI correction
if (empty($link->page->uri)) {
$link->page->uri = '/';
}
// Add host page if not exists
if ($hostPage = $db->findHostPageByCRC32URI($hostId, crc32($link->page->uri))) {