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

Fix issue #2114; Changed network_home_url() to home_url() to avoid wr… #2131

Closed
wants to merge 1 commit into from

Conversation

floek
Copy link

@floek floek commented Mar 29, 2024

Changed network_home_url() to home_url().

Issue: #2114


Description

Changed network_home_url() to home_url() to avoid wrong return url in multisite setup.

Steps to Test

  1. Setup multisite network, woocommerce on sub-page
  2. Purchase an item and pay with PayPal, use redirects to paypal page.
  3. After payment, the redirect back to the page hits the multisite main page and not the sub-page.

Documentation

  • This PR needs documentation (has the "Documentation" label).

Changelog Entry

Avoid wrong return url in multisite setup.

Closes #2114 .

@InpsydeNiklas
Copy link
Member

Thanks for the PR! Updated tests were merged with #2157

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.

Paypal Sub Directory Multisite returns network_home_url (2829)
2 participants