magefan / module-blog

Magento 2 Blog Extension is a solution that helps you to create a blog on Magento and manage posts,categories, tags, authors, and comments.
https://magefan.com/magento2-blog-extension
Other
265 stars 136 forks source link

Blog category redirects to catalog category #443

Closed Steekvlam closed 6 months ago

Steekvlam commented 2 years ago

Describe the bug When you create a Blog Category with the same name as an Catalog Category, it show the Catalog Category. Preconditions:

To Reproduce Steps to reproduce the behavior: Create a blog category with the name Shirt. Create a catalog category with the name Shirt. When you put a post in the category Shirt, visit it on the frontend. Click on the category to go to the blog category index. Its show the catalog category with the blog url: /blog/shirt

Expected behavior Show the blog category index with posts instead of the catalog

Actual behavior It shows the catalog category with products.

elisei commented 2 years ago

tag page is also being redirected to category!

magefan commented 2 years ago

@Steekvlam , @elisei,

Thank you for your reports.

Unfortunately, we were not able to reproduce the issue. Please check the video https://watch.screencastify.com/v/sdz9BX9Qt3OhbYr549lE

You can also try to do the same on our demo https://blog.demo.magefan.top/ Please let us know if we missed something.

As a suggestion the issue on your stores can be related to some third-party extensions with custom routes.

Steekvlam commented 2 years ago

Thank you for your response and screencast, but you missed one step, create a blog post in the category shirt. When you are on the frontend go to the post, then click on the category shirt breadcrumb. It redirects to the catalog category instead of the blog category.

Used third-party extensions: smile/elasticsuite, buckaroo/magento2, sendcloud/sendcloud

magefan commented 2 years ago

@Steekvlam , double checked and it workes well with breadcrumb. Video: https://watch.screencastify.com/v/dGZkaDPJGXwoFjyR0QcS

Maybe you have some customized bredcrambs?

elisei commented 2 years ago

Hi, thanks for the feedback!

The problem occurs for those who use smile/elasticsuite

magefan commented 2 years ago

@elisei , then I think you should create an issue in their repo or maybe this one https://github.com/comwrap/Comwrap_ElasticsuiteBlog

ThijsdejongSNC commented 1 year ago

Hi, thanks for the feedback!

The problem occurs for those who use smile/elasticsuite

  • Magento 2.4.5
  • PHP8.1

Hi @elisei, How have you found this? We're struggling with this problem.