I'm working on a website (MVC dotnetcore)
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 I'm getting confused that how to handle this situation?
Should I use a global variable to keep track of last URL??
but in this case, I've to do a repeatable code on each screen, or may be for each get/ post call.
OR
Should I use kind of breadcrumbs structure?
Like if user move Admin from Index, there would be something like this
Index >> Admin
And for further
Index >> Admin >> ManageUsers
And these would be links to their related pages. But I dont know how to handle this in mvc dotnetcore? Any Idea??
Which approach is good to follow? Any kind of help will be appreciated.