Commit 3700f9af authored by Utz, Wolf-Peter's avatar Utz, Wolf-Peter
Browse files

Merge branch 'fix/urlHandling' into 'master'

Fixed URL-Handling by renaming controller

See merge request shopware/plugins/RicoDynamicFAQ!20
parents 74ad58b3 67bb4679
......@@ -19,7 +19,7 @@ use Symfony\Component\Form\FormInterface;
/**
* Class DynamicFaq.
*/
class Shopware_Controllers_Frontend_Faq extends Enlight_Controller_Action
class Shopware_Controllers_Frontend_RicoFaq extends Enlight_Controller_Action
{
/**
* @var QuestionRepository
......
......@@ -32,8 +32,8 @@ class RicoMenuLoader
'dataArgs' => [
'type' => 'internal',
'linkTarget' => '',
'niceUrl' => false,
'controllerName' => 'Faq',
'niceUrl' => true,
'controllerName' => 'RicoFaq',
'actionName' => '',
'parameter' => [],
],
......
......@@ -92,7 +92,7 @@ class UrlSubscriber implements SubscriberInterface
}
$this->connection->query(
'DELETE FROM s_core_rewrite_urls WHERE org_path = "sViewport=History"'
'DELETE FROM s_core_rewrite_urls WHERE org_path = "sViewport=RicoFaq"'
)->execute();
foreach ($this->shopRepository->findBy(['active' => true]) as $shop) {
$config = $this->cachedConfigReader->getByPluginName($this->pluginName, $shop);
......@@ -117,7 +117,7 @@ class UrlSubscriber implements SubscriberInterface
}
$shop->registerResources();
$this->rewriteTable->sInsertUrl(
'sViewport=Faq',
'sViewport=RicoFaq',
$elementValue
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment