I have inherited a system written in MVC (5?). It has a page that contains a dropdown of options (by user, by page) and an input box. The "Find" button is an HTML button which is attached to a JQuery click event function. The function makes a $.get call to a partial view and loads it into a div on the current page.
The results also contain links that allow switching between the available options (user, page), so if it is a list of pages by user - there will be a link to see users by page.
That all works as expected (whether or not it is the best / correct way of doing it). Although it does have the issue that users cannot use the back button.
The problem I have is, for various reasons, the page needs to be split into two - pages by user and users by page. However, I still need to provide the ability to switch between the two different views. Now that they are different pages / urls the method of switching (getting data via Ajax and injecting it into a div) doesn't work.
So, the question is, how can I click on a link (?) on one page and transfer to the other page and display the results, using the key value passed (either user Id or page Id)?