title: Fetching url segment and changing the pagination link
body: <p>My link is www.xxx.com/key/load</p>
  
  <p>I want to check if the url contains "load" keword, then change the pagination url</p>
  
  <p>from</p>
  
  <pre><code>&lt;a href="www.xxx.com/key?p=xx"&gt;2&lt;/a&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>&lt;a href="www.xxx.com/key/load?p=xx"&gt;2&lt;/a&gt;
  </code></pre>
  
  <p>Please help me to solve it, using jQuery.</p>