Hi,
I've just recognized by accident, that calling the page with an not existing anchor in the URL will lead to a JS error, which further breaks any other scripts on the page. ("TypeError: $(...).offset(...) is undefined" in line 12 of single-page-site-scroll.js)
However, this is very easy to fix. I will attach a patch in a few minutes...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_js_error_on_invalid_url_hashes-2533774-2.patch | 518 bytes | agoradesign |
| #1 | fix_js_error_on_invalid_url_hashes-2533774-1.patch | 938 bytes | agoradesign |
Comments
Comment #1
agoradesign commentedvoila
Comment #2
agoradesign commentedI've just had a strange issue when applying my own patch created with "git format-patch" command.
This is an alternate version created with the simpler "git diff" command, if you encounter the same problem.
That's the only difference, it's still the same patch
Comment #4
robin.ingelbrecht commentedThanks for the patch. Committed the changes WITH your username as author ;)
Comment #5
agoradesign commentedloooool thanks for committing :)))