I have the following url
http://mywebsite/mypages
when you go to this url it will display a list of links, for example
http://mywebsite/pages?page=1
http://mywebsite/pages?page=2
...
when the user click on one of these links, an ajax request will be executed to bring the content of this page and then display the content in the same page (by same page i mean mywebsite/mypages).
The question is: how can i simulate this behavior?. for example a user has a link:
http://mywebsite/simulation?page=http://mywebsite/pages?page=1
when a user click this url, i want to redirect him/her to mywebsite/mypages and simulate a click on the link
http://mywebsite/pages?page=1
so the user can see the content of this page.