name&quot;
m.route.mode = &quot;search&quot;
</code></pre>
<h3 id="v1x10"><a href="#v1x10"><code>v1.x</code></a></h3>
<pre><code class="lang-javascript">m.route.prefix(&quot;&quot;)
m.route.prefix(&quot;?&quot;)
</code></pre>
<hr>
<h2 id="mroute-and-anchor-tags"><a href="#mroute-and-anchor-tags"><code>m.route()</code> and anchor tags</a></h2>
<p>Handling clicks on anchor tags via the mithril router is similar to <code>v0.2.x</code> but uses a new lifecycle method and API.</p>
<h3 id="v02x11"><a href="#v02x1