diff --git a/eZ/Bundle/EzPublishCoreBundle/EventListener/IndexRequestListener.php b/eZ/Bundle/EzPublishCoreBundle/EventListener/IndexRequestListener.php index a27305203f..978417411a 100644 --- a/eZ/Bundle/EzPublishCoreBundle/EventListener/IndexRequestListener.php +++ b/eZ/Bundle/EzPublishCoreBundle/EventListener/IndexRequestListener.php @@ -49,7 +49,7 @@ public function onKernelRequestIndex(RequestEvent $event) if ($indexPage !== null) { $indexPage = '/' . ltrim($indexPage, '/'); $request->attributes->set('semanticPathinfo', $indexPage); - $request->attributes->set('needsForward', true); + $request->attributes->set('needsRedirect', true); } } } diff --git a/eZ/Bundle/EzPublishCoreBundle/Tests/EventListener/IndexRequestListenerTest.php b/eZ/Bundle/EzPublishCoreBundle/Tests/EventListener/IndexRequestListenerTest.php index bfa3317521..46810308d3 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Tests/EventListener/IndexRequestListenerTest.php +++ b/eZ/Bundle/EzPublishCoreBundle/Tests/EventListener/IndexRequestListenerTest.php @@ -77,7 +77,7 @@ public function testOnKernelRequestIndexOnIndexPage($requestPath, $configuredInd $this->request->attributes->set('semanticPathinfo', $requestPath); $this->indexRequestEventListener->onKernelRequestIndex($this->event); $this->assertEquals($expectedIndexPath, $this->request->attributes->get('semanticPathinfo')); - $this->assertTrue($this->request->attributes->get('needsForward')); + $this->assertTrue($this->request->attributes->get('needsRedirect')); } public function indexPageProvider() @@ -97,6 +97,6 @@ public function testOnKernelRequestIndexNotOnIndexPage() { $this->request->attributes->set('semanticPathinfo', '/anyContent'); $this->indexRequestEventListener->onKernelRequestIndex($this->event); - $this->assertFalse($this->request->attributes->has('needsForward')); + $this->assertFalse($this->request->attributes->has('needsRedirect')); } }