I'm having a strange issue which happens whenever a page is loaded with a hash at the end, ex. #home or #quotes. Some javascript breaks when there is a hash at the end of the link. The page works fine when there is no hash.
Live examples:
http://real-ufos.com/ - works
http:// real-ufos.com/#home - quite a few javascript things broken (earth's positioning, smooth scroll to hash section, comment tabs, opening prettyphoto lightbox etc)
Here is the scripts file: http:// real-ufos.com/wp-content/themes/real-ufos/js/scripts.js which I guess is most likely to contain the issue.
(Had to break up the links as I can't post more than one)
This is a similar question to Trailing hash (#) in URL breaks some Javascript? - but I couldn't find my answer there.
Uncaught Error: Syntax error, unrecognized expression: a[href=#home]window.location.hash ? 'a[href="' + window.location.hash + '"]'at line 46 in yourscripts.js?ver=4.7.5so instead ofa[href=#home]it comes out asa[href="#home"]