title: How do I dynamically choose a controller in MVC Core
body: <p>I have a situation where a site may need a link to redirect to certain controllers based on database results.</p>
  
  <p>For example:</p>
  
  <p>site.com/abcd</p>
  
  <p>needs to return the result from a Item Controller, which would normally be called as /item/view/123</p>
  
  <p>The key here is that I can't hard code the abcd into the routing.  And some links may go to an Item Controller, others may go to an Orders controller.</p>
  
  <p>I've tried a catchall route to a controller than then loads up the desired controller, but the environment is not set so it does not work properly (it can't find the views).</p>