I'm redesigning a website, and have what I've found to be an interesting problem to solve.
On the original site, there is a list of links; and each link returns its own page that shows almost identical data to the other link pages. The only difference between each of these pages is the sql query that's run upon clicking the link. As a result, there are many redundant pages that, in my mind, could be solved with one smarter page.
I want to have one smarter global page that all the links go to, but want that smart page to be able to know which link was clicked to get there, and will run a different query based on the link it's coming from.
Is there a good/clean way to do this? I am excited by the thought, but am having trouble with implementation.
Thanks in advance for the help!