Use full URL for return endpoint

This commit is contained in:
Alex P 2022-03-12 22:06:38 +02:00
parent 1a9fbc1303
commit 703656bec2
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class ApplicationContextRepository {
$landingpage = $this->settings->has( 'landing_page' ) ?
$this->settings->get( 'landing_page' ) : ApplicationContext::LANDING_PAGE_NO_PREFERENCE;
$context = new ApplicationContext(
\WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ),
network_home_url( \WC_AJAX::get_endpoint( ReturnUrlEndpoint::ENDPOINT ) ),
(string) wc_get_checkout_url(),
(string) $brand_name,
$locale,

View file

@ -36,7 +36,7 @@ class ApplicationContextRepositoryTest extends TestCase
->andReturn($value);
}
expect('home_url')
expect('network_home_url')
->andReturn('https://example.com/');
expect('wc_get_checkout_url')
->andReturn('https://example.com/checkout/');