his is inefficient, since they just fired
before the redirect.</p>
<p>Instead, we can use the <a href="https://api.emberjs.com/ember/3.17/classes/Route/methods/redirect?anchor=redirect"><code>redirect()</code></a> method, which will leave the original
transition validated, and not cause the parent route's hooks to fire again:</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/routes/posts.js</span><pre class="language-javascript line-numbers"><code class="javascript language-javascript