<p>Need to prevent the default action so that the page isn't reloaded.</p>

<p>Also, since the click event binding uses delegation, it isn't necessary to<br>
wrap it in $(document).ready().</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/jfirebaugh/openstreetmap-website p2-search</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/227'>https://github.com/openstreetmap/openstreetmap-website/pull/227</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fix P2 interaction with search links</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/227/files#diff-0">app/views/site/_potlatch2.html.erb</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/227.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/227.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/227.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/227.diff</a></li>
</ul>