title: React navigation issue with routing to a new path
body: <pre><code> onClick={() =&gt; navigate(window.mainurl + &quot;list_task_cat&quot;, { replace: true })}
  </code></pre>
  <p>I'm trying to navigate a path the math I want go is&quot;tabbiereact/admin/list_task_cat&quot;</p>
  <p>but i get a extra previous route withe me like &quot;tabbiereact/admin/create_task_cat/tabbiereact/admin/list_task_cat&quot;</p>
  <p>I want to go new route with out having the previous route in the back</p>
  <p>the value of window.mainurl is &quot;/tabbiereact/admin/&quot;</p>