After Window.history.pushState() go back to prev URL
<p>I have grid of products. Each product row in the grid can be expended to show the full product details (done with Ajax).</p>

<p>For SEO purposes when a row is expended am using :</p>

<pre><code>window.history.pushState()
</code></pre>

<p>to change the URL.</p>

<p>For example:  URL such as:</p>

<pre><code>http://mydomain.com/bouquets/cityName
</code></pre>

<p>will be changed to:</p>

<pre><code>http://mydomain.com/bouquets/cityName/prodId
</code></pre>

<p>The problem is when another row expended the new URL will be:</p>

<pre><code>http://mydomain.com/bouquets/cityName/prodId/prodId
</code></pre>

<p>The third row expended:</p>

<pre><code>http://mydomain.com/bouquets/cityName/prodId/prodId/prodId/
</code></pre>

<p>and so on...</p>

<p>When a row expended after the first time, I need to do in JS something like:</p>

<pre><code>&lt;a href= "../URL" &gt;
</code></pre>
