title: %2F instead of slash in url?
body: <p>I have a problem with jquery syntax in an url link:</p>
  
  <p>this is the link i am getting (englisch):</p>
  
  <blockquote>
    <p>...myaccount/?lang=en%2Fprint-order%2F2067%2F&amp;print-order-type=receipt</p>
  </blockquote>
  
  <p>this is the german link:</p>
  
  <blockquote>
    <p>...myaccount/print-order/2067/?print-order-type=receipt</p>
  </blockquote>
  
  <p>the problem now is, that the link looks ok in my browser </p>
  
  <blockquote>
    <p>myaccount/print-order/2067/?print-order-type=receipt</p>
  </blockquote>
  
  <p>but actually there's always a "%2F" instead of a "/" inside the link when I copy it which leads to the problem of getting an 404.</p>
  
  <p>When I manually replace "%2F" the link works.</p>
  
  <p>Where is the problem? Any idea to fix this? </p>
  
  <p>The code below comes from woocommerce/templates/myaccount/my-orders.php</p>
  
  <pre><code>if ($actions) { foreach ( $actions as $key =&gt; $action ) { echo '&lt;a
   href="' . esc_url( $action['url'] ) . '" class="button ' .
   sanitize_html_class( $key ) . '"&gt;' . esc_html( $action['name'] ) .
   '&lt;/a&gt;'; }
  </code></pre>
  
  <p>It generates the "Print" button on the "my orders" page. I am using mqtranslate german/englisch. In  the german version everything works- the links are correct, ony when i switch the language there are "%2f" instead of "/". But also only after the first part (until myaccount/) - because some "/" are correctly encoded.</p>
  
  <p>Also in the english version it's a "&amp;" before "print-order-type=receipt" instead of a "?". </p>