Title: Checkout redirection problem
Last modified: April 30, 2022

---

# Checkout redirection problem

 *  Resolved [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/checkout-redirection-problem/)
 * Hi All
    I’m having a problem with the redirection after a checkout. When someone
   buys (payment received successfully) is directed to “[http://order-received/XXXX/?key=wc_order](http://order-received/XXXX/?key=wc_order)..”(
   obviously returns DNS_PROBE_FINISHED_NXDOMAIN) instead of “[https://mydomain.com/finalizar-compra/order-received/XXXX/?key=wc_order](https://mydomain.com/finalizar-compra/order-received/XXXX/?key=wc_order)..”.
   I really dont know whats happening and why my domain is missing in the redirection,
   I haven’t found where the problem is..
 * [My config](https://imgur.com/a/Q6U959R)
 * I hope you can help me
    Thank you in advance

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15606821)
 * Hi [@emaf94](https://wordpress.org/support/users/emaf94/),
 * How are you today?
 * Can you resave permalinks and see if that helps? Specifically, you should go 
   to **Settings ➔ Permalinks** and click on the “Save Changes” button at the bottom
   of the page without actually doing any change.
 * If that doesn’t help, I recommend doing a conflict test as it could be a conflict
   issue with the theme or a plugin. You can find a more detailed explanation on
   how to do a conflict test here: [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
 * Let us know how it goes.
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15613778)
 * Thanks.
 * After several tests I discovered that the problem is with the MercadoPago extension,
   so I will continue the discussion in the corresponding forum and i will mark 
   this as resolved.
 * Goodnight
    -  This reply was modified 4 years ago by [emaf94](https://wordpress.org/support/users/emaf94/).
 *  [Mashi](https://wordpress.org/support/users/shaonback2/)
 * (@shaonback2)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15613788)
 * Hello !@emaf94!
 * > After several tests I discovered that the problem is with the MercadoPago extension,
   > so I will continue the discussion in the corresponding forum and i will mark
   > this as resolved.
 * Glad to hear it – thanks for letting us know!
 * If you have any further questions, please feel free to create a new thread.
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15623583)
 * Hello again
 * I found that the problem occurs with the Elementor plugin, if I disable it, everything
   works fine, but since keeping it disabled is not an option I decided to look 
   for an alternative..
 * After a long investigation, having all the plugins disabled except Elementor &
   Woocommerce, I discovered that the problem is caused by the function “wc_get_endpoint_url()”(
   wp-page-functions.php, line 88), of Woocommerce, not from MercadoPago extension.
   It was returning, for some reason, always the home URL, so the workaround I found
   was concatenating “/finalizar-compra” (my pay page, previously configured, as
   seen in the screenshot) in the “get_checkout_order_received_url()” filter (class-
   wc-order.php, line 1608).
 * So I was left like this:
    from:
 *     ```
       return apply_filters( 'woocommerce_get_checkout_order_received_url', $order_received_url, $this );
       ```
   
 * to:
 *     ```
       return apply_filters( 'woocommerce_get_checkout_order_received_url', '/finalizar-compra'.$order_received_url, $this );
       ```
   
 * I tried the above with the default Woocommerce pages, to discard possible problems
   with Elementor.
 * This at least allows to redirect after a purchase, although I had to add the 
   domain of my page to a function of MercadoPago extension in the same way so that
   the native redirections of Woocommerce + MP extension would work.
 * I hope you can help me to get a more definitive solution since otherwise I have
   to be modifying the plugin after each update.
 * Greetings.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15623592)
 * Hi [@emaf94](https://wordpress.org/support/users/emaf94/),
 * Thanks for getting back on this thread.
 * I understand your issue but we can only assist with the default core WooCommerce
   functionality. If you disable all other plugins and change the theme to the default
   Storefront the order received page should always return the URL you reported 
   here:
 * `“https://mydomain.com/finalizar-compra/order-received/XXXX/?key=wc_order..”.`
 * If it’s not working as intended when you enable third-party plugins, you should
   get assistance from the plugin developers directly or hire a developer to get
   that issue fixed. In this case, we recommend reaching out to some of the official
   WooCommerce development partners via this link: [https://woocommerce.com/customizations/](https://woocommerce.com/customizations/).
 * Best.
 *  Thread Starter [emaf94](https://wordpress.org/support/users/emaf94/)
 * (@emaf94)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15623958)
 * Ok, I will continue to investigate the problem and ask in the corresponding forum
   if necessary.
 * Thx
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15624143)
 * Sure! That sounds like a good plan.
 * Feel free to create a new topic if you need any help related to core WooCommerce.
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Checkout redirection problem’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [domain](https://wordpress.org/support/topic-tag/domain/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)

 * 7 replies
 * 4 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/checkout-redirection-problem/#post-15624143)
 * Status: resolved