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,