I'm facing an issue with razor page navigation. I'm in the https://localhost:7154/Application/setupAccount page and i have to redirect to https://localhost:7154/Loan/setupLoan page.
So I used RedirectToPage("setupLoan", new{id=123}. but the issue is that it's looking like a setupLoan page inside the Application folder. ( URL - https://localhost:7154/Application/setupLoan )
Then I'm getting an error like page not found
I can use redirect functionality. But the thing is, I can't send dynamic query parameters.
So let me know if anyone know a correct path to navigate razor page into another folder

Razor page redirect to another folder page
Try:
   return RedirectToPage("setupLoan", new { area = "Application",id=1 }); 

result:

You can read Areas with Razor Pages to know more.
Update
 return RedirectToPage("setupLoan", new { area = "Loan",id=1 }); 

Update 2
Loan is a page folder. not area folder ,
try:
  return RedirectToPage("/Loan/setupLoan", new { id = 1 });

