This Gist contains the source for two HTML pages. The first page, page1.html
takes a request with a query param name
and templates
that into a link to the second page, page2.html
.
To test this youself save those pages in the same folder somewhere on your computer, than open page1.html
in a web browser.
Modify the link in the URL bar to contain the query param name
with some value, i.e.:
file:///Users/myusername/some_directory/page1.html?name=Derek
The page should rewrite itself to contain a link to:
file:///Users/myusername/some_directory/page2.html?name=Derek
This page should say "Hello Derek". Hopefully.