-1

Please excuse the lack of proper terminology and understanding in this field - I'll do my best.

Normally, triggered by an event, I would expect a link tag (for example an <a></a> tag with a href attribute) to load a certain URL. For example, on a click event the code <a href="contact">Go to Contact page</a> would load the URL http://domainname.com/contact/

However, on one particular page (the order confirmation page of Woocommerce: http://domainname.com/checkout/order-received/245/?key=wc_order_T7QXRMyac8o9t/), the expected behaviour of a header navigation link click is not manifested. Instead of the expected URL output in the browser: http://domainname.com/contact/, I do get: http://domainname.com/checkout/order-received/245/contact/. And more importantly, the page http://domainname.com/contact/ consequently does not load. In that scenario, it basically means the user has to change the URL manually to get anywhere else...

I have som idea of why this is happening, and my guess is that it is related to a path issue and/or an issue with absolute/relative link structure setup in my WordPress site. If it is to any help or relevance, I am using the <?php /* Template Name: contact */?> way of "connecting" .php pages with WordPress pages. Inside these WordPress pages the permalink value is set to contact (or respectively).

Interestingly, the "sub pages": "shop" and "cart" as well as "checkout" does not behave this way. Solely the http://domainname.com/checkout/order-received/245/?key=wc_order_T7QXRMyac8o9t/ page. Does the problem relate to the "variability" of parameters of this URL? For example, in this URL the order number 245 is current, but in the next order 246 is current, and so on.

Please feel free to ask for clarification and/or more info. Help would be appreciated.

Daniel F
  • 1
  • 1

0 Answers0