title: Handle breadcrumbs in mvc dotnetcore
body: <p>I'm working on a website <code>(MVC dotnetcore)</code> that has many pages and flows as well. A user can approach a single page from many different ways. I'm getting stuck when user wants to move back and I don't have any track of its last URL. And <strong>I'm getting confused that how to handle this situation?</strong></p>
  
  <blockquote>
    <p>Should I use a global variable to keep track of last URL?? </p>
  </blockquote>
  
  <p>but in this case, I've to do a repeatable code on each screen, or may be for each get/ post call. </p>
  
  <p>OR</p>
  
  <blockquote>
    <p>Should I use kind of breadcrumbs structure?</p>
  </blockquote>
  
  <p>Like if user move Admin from Index, there would be something like this </p>
  
  <pre><code>Index &gt;&gt; Admin
  </code></pre>
  
  <p>And for further </p>
  
  <pre><code>Index &gt;&gt; Admin &gt;&gt; ManageUsers 
  </code></pre>
  
  <p>And these would be links to their related pages.
  <strong>But I dont know how to handle this in mvc dotnetcore? Any Idea??</strong></p>
  
  <p>Which approach is good to follow? Any kind of help will be appreciated.</p>