getPathInfo(), '/')); if ($path === '') { return null; } $category = $this->collectionFactory->create() ->addActiveFilter() ->addStoreFilter((int) $this->storeManager->getStore()->getId()) ->addFieldToFilter('custom_url_path', $path) ->setPageSize(1) ->getFirstItem(); if (!$category->getId() || !$category->isClickable()) { return null; } $request->setModuleName('wiki') ->setControllerName('index') ->setActionName('view') ->setParam('slug', (string) $category->getData('slug')); return $this->actionFactory->create(Forward::class); } }