Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@6.x Storefront Controller redirectToRoute()/createActionResponse() pathing from plugins are broken since start. #1841

Closed
moorl opened this issue May 4, 2021 · 1 comment

Comments

@moorl
Copy link

moorl commented May 4, 2021

Description
Since Start of Shopware 6 the Routing from Plugins never work.

  1. I cant use path() in my TWIG templates, i will always get the path of the default SalesChannel and not the active from the Storefront -> The Controller don't know the right SalesChannelContext and respond with wrong languages etc.
  2. If I call my Plugins Storefront Controller and the Shop is in a Subdirectory, the redirectToRoute() path is always broken. Problem is known from the start too but never fixed:

Controller Path: mydomain.com/my-plugin-test/public/moorl-accessory-finder/set-filter
Redirect Path with redirectToRoute(): mydomain.com/seo-url
What I expect to get with redirectToRoute(): mydomain.com/my-plugin-test/public/seo-url

This problem is really discusting since my plugins do not pass the Shopware Quality Guidelines to release them in the store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants