I am working on a website (MVC dotnetcore) which also has many pages and threads. The user can approach one page in different ways. I get stuck when a user wants to go back and I donβt have a trace of his last URL. And I am embarrassed how to deal with this situation?
Should I use a global variable to track the last URL?
but in this case I have to do repeatable code on every screen or maybe for every get / post call.
OR
Should I use the breadcrumbs structure?
As if the user had moved Admin from Index, there would be something like this
Index >> Admin
And for further
Index >> Admin >> ManageUsers
And these will be links to their related pages. But I don't know how to handle this in mvc dotnetcore? Any idea
Which approach is good? Any help would be appreciated.
source share