Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load previous content like GitHub?

When I'm on GitHub and I browse some folder, the content loads dynamically :

  • address bar is updated
  • main content is updated

When I click on previous of my web browser to roll back :

  • address bar recovered his previous url
  • main content recovered his previous content.

For my own site, I can load content dynamically (in jQuery). But when I roll back, only my address bar is updated. The content doesn't change. :(

How can I get my previous content when I click on previous ?

Thanks

like image 649
Steffi Avatar asked May 14 '26 02:05

Steffi


1 Answers

Check out the jquery-address plugin.

https://github.com/asual/jquery-address

like image 153
jasonlfunk Avatar answered May 15 '26 15:05

jasonlfunk