Skip to content

Comments

fix: trim trailing slashes in shop url in before registration start l…#57

Closed
Moritz Krafeld (MoritzKrafeld) wants to merge 1 commit intomainfrom
trim-trailing-slashes-in-shop-url-in-before-registration-start-listener
Closed

fix: trim trailing slashes in shop url in before registration start l…#57
Moritz Krafeld (MoritzKrafeld) wants to merge 1 commit intomainfrom
trim-trailing-slashes-in-shop-url-in-before-registration-start-listener

Conversation

@MoritzKrafeld
Copy link
Contributor

If there is a trailing slash in the app url during registration, we need to trim it in order to check if the shop is reachable. This has already been fixed in the app php sdk so that can't happen anymore after the registration is done. As this could still happen during registration and the event which we get contains the whole request, we need to trim it at this point. Trimming it before this would result in an inconsistency between the URL in $event->getRequest() and $event->getShop()->getShopUrl().

@MoritzKrafeld
Copy link
Contributor Author

If this gets merged (shopware/app-php-sdk#36) we don't need this MR anymore 😄

@MoritzKrafeld
Copy link
Contributor Author

Not needed anymore as this is already fixed in https://github.com/shopware/app-php-sdk/releases/tag/4.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants