changing a link to a different link using jquery
<p>how to change this URL</p>

<pre><code>&lt;a href="http://mydomain.com/products-page/bath-and-body/"&gt;link&lt;/a&gt;
</code></pre>

<p>to </p>

<pre><code>&lt;a href="http://mydomain.com/bath-and-body/"&gt;link&lt;/a&gt;
</code></pre>

<p>removing the product-page slug from wp e-commerce</p>

<p>so for example there is a link like this</p>

<pre><code>&lt;a href="http://mydomain.com/products-page/bath-and-body/"&gt;link&lt;/a&gt;
</code></pre>

<p>and it will automatically changed to this</p>

<pre><code>&lt;a href="http://mydomain.com/bath-and-body/"&gt;link&lt;/a&gt;
</code></pre>

<p>because I have some links that has a product-page slug and I want to get rid of it,
can this be achieved in jquery or php?</p>
