From what I gathered, popstate/pushstate physically changes the url address whenever you click on an event. In the example page below, whenever you click on a link in the nav bar, the ajax is called and the url changes. However, if I was to copy the altered url address and enter that as the web address, it would send me to the homepage of the website. Is it possible for the user to go to that altered url and have the ajax automatically called that is related to the altered url address? If so, what function would I have to look for?
Website Demo Homepage:
http://html5.gingerhost.com/
Altered website address that still leads to the homepage and not the section “London”
http://html5.gingerhost.com/london
EDIT: I’ve found this helpful link but are there any other helpful tutorials or advice?
http://fortuito.us/diveintohtml5/examples/history/pepper.html
The answer I found out is yes. Using programs such as PJAX will automatically do that for you.