You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generated url is https://www.example.com/en/en/adyen/redirect-result in some cases.
Expected behavior
URL should be generated correctly.
Additional context
The issue is that if the SALES_CHANNEL_BASE_URL attribute is set by Storefront, the storefront router (if storefront is installed) appends that URL to absolute paths.
As for headless the base url attribute might not be set, it is good that you do not require that attribute to determine the correct URL. However, it can result in wrong URLs.
One solutoin would be to use router.default again as service. As that one only generates /adyen/redirect-result and then with adding the base url https://www.example.com/en/ it works correctly and should result in https://www.example.com/en/adyen/redirect-result.
This should also work if the domain is instead https://en.example.com and would then result in https://en.example.com/adyen/redirect-result.
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue and creating a PR at the same time. We will try to reproduce the issue and try to fix with your PR. After PR is approved, we will merge it.
Describe the bug
A clear and concise description of what the bug is.
Versions
Shopware version: 6.4.18.0
Plugin version: 3.8.1
To Reproduce
Steps to reproduce the behavior:
https://www.example.com/en
https://www.example.com/en/en/adyen/redirect-result
in some cases.Expected behavior
URL should be generated correctly.
Additional context
The issue is that if the SALES_CHANNEL_BASE_URL attribute is set by Storefront, the storefront router (if storefront is installed) appends that URL to absolute paths.
As for headless the base url attribute might not be set, it is good that you do not require that attribute to determine the correct URL. However, it can result in wrong URLs.
One solutoin would be to use
router.default
again as service. As that one only generates/adyen/redirect-result
and then with adding the base urlhttps://www.example.com/en/
it works correctly and should result inhttps://www.example.com/en/adyen/redirect-result
.This should also work if the domain is instead
https://en.example.com
and would then result inhttps://en.example.com/adyen/redirect-result
.The text was updated successfully, but these errors were encountered: