0

As far as I know it's not possible to change a URL in the address bar without redirecting a page (only updating fragments will work), but in Pinterest.com it seems like only a modal dialog is opened when clicking on a post, and at the same time the URL is updated to ".../post/12356789". I'm curious how do they achieve that?

Thanks!

Michael Spector
  • 36,723
  • 6
  • 60
  • 88

1 Answers1

0

It's probably done using the history.pushState() method in "HTML5", which lets you manipulate the browser history (to some extent). Here's an article detailing how it works.

Thomas
  • 174,939
  • 50
  • 355
  • 478