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

Use route name instead of a hardcoded '/' to redirect user on logout #12485

Merged
merged 1 commit into from Mar 30, 2021

Conversation

rimas-kudelis
Copy link
Contributor

@rimas-kudelis rimas-kudelis commented Mar 27, 2021

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets none
License MIT

On logout, shop users are currently being redirected to a hardcoded / path. However, this isn't always desired. For example, if localized routes are involved, this effectively switches the shop to its default locale on logout.

This change passes sylius_shop_homepage route name instead of a / path to the LogoutHandler, meaning the actual path will be generated when the event occurs.

@rimas-kudelis rimas-kudelis requested a review from a team as a code owner March 27, 2021 07:59
@probot-autolabeler probot-autolabeler bot added the Shop ShopBundle related issues and PRs. label Mar 27, 2021
@pamil pamil merged commit c09a877 into Sylius:master Mar 30, 2021
@pamil
Copy link
Contributor

pamil commented Mar 30, 2021

Thank you, Rimas! 🥇

@rimas-kudelis rimas-kudelis deleted the PR-1 branch March 30, 2021 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants