How can jQuery detect changes to a url?
For example: If a user goes to a page site.com/faq/ nothing shows, but if he goes to site.com/faq/#open
site.com/faq/
site.com/faq/#open
Try This
$(window).on('hashchange', function(e){ // Your Code goes here });
Its working for me