linking my pages using permalinks so that when i upload everything to the live server i would have all my pages to connected but having one problem with this page.
the permalink is:
http://localhost/wordpress/checkout/
and when i use:
$thischeckout = WC()->cart->get_checkout_url();
echo esc_html( $thischeckout );
or
echo $thischeckout;
i do get the permalink correctly as so:
http://localhost/wordpress/checkout/
but when i place that in href it redirects me to a wrong page:
href="<?php echo $thischeckout?>"
or
href="<?php echo WC()->cart->get_checkout_url()?>"
or
href="<?php echo esc_html($thischeckout)?>"
the wrong url that i am getting is:
http://localhost/wordpress/checkout/%E2%80%8E%E2%80%8E
any hints what might be causing the problem would be appreciated thanks in advance