title: Use Identical Routing & Diagnose Correct One
body: <p>How can I find out that the rout in request belongs to &quot;Page&quot; or &quot;Controller&quot;? Solution structure is as follows:</p>
  <ul>
  <li>Areas&gt;cesUser&gt;<strong>Controllers</strong>&gt;tblUser&gt;RecoverPassword</li>
  <li>Areas&gt;cesUser&gt;<strong>Pages</strong>&gt;tblUser&gt;RecoverPassword</li>
  </ul>
  <p>Now, if the address in browser is written as follows, how should the program diagnose the correct path?</p>
  <ul>
  <li>localhost:2020/cesUser/tblUser/RecoverPasswor/{recoveryCode}</li>
  </ul>
  <p>To solve the problem, I created a controller that receives the recovery code as an argument and if it is correct, it directs the user to the desired page and sends the received code to the OnGet method.</p>
  <pre><code>[AllowAnonymous]
  public IActionResult RecoverPassword(string verificationCode)
  {            
      return RedirectToPage(&quot;/tblUser/RecoverPassword&quot;, new { area = &quot;cesUser&quot;, verificationCode  = verificationCode });
  }
  </code></pre>
  <p>thank you all</p>