Dynamically changing header text depending on URL in WordPress html page
My shopping cart displays the order history on the last page the customer visited. For example, www.someurl.com/item1 is the last page the customer visited before checkout. An order confirmation email is sent with a link to that order as well as the customers entire order history. The link address is www.someurl.com/item1/#!/~/orderConfirmation.
I would like my header to read “item1” on www.someurl.com/item1, and “history” on www.someurl.com/item1/#!/~/orderConfirmation.
I am using WordPress 3.5.2 with a twenty-twelve child theme
Can this be accomplished? Any help is greatly appreciated