Typing in a URL that calls AJAX?

I’ve created a website that loads blog articles dynamically through AJAX and a JSON representation of the articles. But I’ve completely overlooked the fact that making the website function this way means that the url stays as www.example.com with no paths beyond that. If I was to share an article like www.example.com/blog/a-article/ this would take my to a template of that article, however, in my case I would like this link to direct to my website in state where this article’s JSON representation has been appended already. How would I go about implementing this functionality?

Check out the HTML history API, e.g. this article: https://css-tricks.com/using-the-html5-history-api/