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

NTR - optimizes custom domain overwrite #883

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

michnhokn
Copy link
Contributor

I would suggest adapting the applyCustomDomain method to replace not just the host but the full base URL. This way you can also control the schema as well as any ports.

In the current implementation you might run into the problem that you have a local port like 8000 which is not the case for the URL you want to replace it with. Then only the host is replaced, and Mollie will still try to access the new host on port 8000, which is not what you want.

This changes the behaviour of the MOLLIE_SHOP_DOMAIN env variable a bit, because it should provide a schema. But it's not necessary.

@BlackScorp
Copy link
Collaborator

hi @michnhokn thanks for the PR, could also fix the Unit tests for this? then i would merge it.

best regards

@BlackScorp BlackScorp merged commit 4e9b41f into mollie:master Nov 4, 2024
20 checks passed
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

Successfully merging this pull request may close these issues.

2 participants