Skip to content

Commit

Permalink
Use short testimonials page url
Browse files Browse the repository at this point in the history
  • Loading branch information
roma84 committed Jan 6, 2021
1 parent b294a7e commit 9ae78c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Block/TestimonialsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getFormAction()
*/
public function getListAction()
{
return $this->getUrl('testimonials/index/index');
return $this->getUrl('testimonials');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Block/Widgets/SideList.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public function getTestimonials()
}
public function getListUrl()
{
return $this->getUrl('testimonials/index/index');
return $this->getUrl('testimonials');
}
}
2 changes: 1 addition & 1 deletion Block/Widgets/SideReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getTestimonials()
}
public function getListUrl()
{
return $this->getUrl('testimonials/index/index');
return $this->getUrl('testimonials');
}
public function getStoreName()
{
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<block class="Magento\Framework\View\Element\Html\Link\Current" ifconfig="testimonials/general/top_links" name="testimonials-list-link-header">
<arguments>
<argument name="label" xsi:type="string" translate="true">Testimonials</argument>
<argument name="path" xsi:type="string">testimonials/index/index</argument>
<argument name="path" xsi:type="string">testimonials</argument>
</arguments>
</block>
</referenceBlock>
<referenceBlock name="footer_links">
<block class="Magento\Framework\View\Element\Html\Link\Current" ifconfig="testimonials/general/footer_links" name="testimonials-list-link-footer">
<arguments>
<argument name="label" xsi:type="string" translate="true">Testimonials</argument>
<argument name="path" xsi:type="string">testimonials/index/index</argument>
<argument name="path" xsi:type="string">testimonials</argument>
</arguments>
</block>
</referenceBlock>
</body>
</page>
</page>

0 comments on commit 9ae78c5

Please sign in to comment.