-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix redirection when there is a trailing slash in the products list path #11850
Fix redirection when there is a trailing slash in the products list path #11850
Conversation
loic425
commented
Sep 16, 2020
Q | A |
---|---|
Branch? | 1.7 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | |
License | MIT |
Isn't that something Symfony already does https://symfony.com/doc/current/routing.html#redirecting-urls-with-trailing-slashes? |
Yes, indeed and this is what I use to fix the problem. https://demo.sylius.com/en_US/taxons/caps/with-pompons/ With my change, the slug is now fixed and Symfony makes a redirection without the trailing slash. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's still a valid fix 👍 Just should be rebased with 1.8
585aecb
to
f44855a
Compare
@Zales0123 done 👍 |
Hey Loic, could you rebase it to 1.10? Would be awesome to have it merged |
efa087f
to
bf48c38
Compare
done |
@lchrusciel I think you could merge ;) |
And the store has a product "Plastic Tomato" available in "Poland" channel | ||
And this product belongs to "Funny" | ||
|
||
@ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ui | |
@ui @no-api |
but TBH, I would prefer to do just simple PHPUnit test for that instead of behat
Thank you, Loïc! 🎉 |