3 ms·
WOW. Thank you so much for reporting this; you just found a bug that makes me look evil. :) Basically, the Sign up page contains the word "javascript", so if y
by acangiano 16y ago
WOW. Thank you so much for reporting this; you just found a bug that makes me look evil. :)
Basically, the Sign up page contains the word "javascript", so if you search for it, that page will be included by the search function. Given that the email textbox grabs the focus, you'll get immediately sent to the bottom of the page.
If you try to search for something else you will not experience this behavior: http://img.skitch.com/20101007-xpcmkm4ebj4kiwsbsfiknsc7m4.jpg http://img.skitch.com/20101007-xpcmkm4ebj4kiwsbsfiknsc7m4.jp...
Thank you again for reporting this. I'll fix this ASAP.
- revorad 16y agoHaha, what a crazy funny bug!!! Sorry for my false accusations. But I'm still not clear how the sign up page is included. Aren't you searching a database based on keywords and generating pages on the fly? What do you mean by "that page will be included by the search function"? I don't see any dedicated pages for individual books.
- acangiano 16y agoI use a customized Wordpress instance as the front-end for the website. Worpress search includes both posts and pages by default. I fixed the bug by excluding pages from the search with a filter function. Now only archived newsletters will show up when you search for a given keyword. In the future I plan to make the search a much more prominent feature, sort of like a search engine for new books. At that time, I will use a backend which will contain the individual books, rather than simply do a text search through the newsletter archives.
- revorad 16y agokudos for hacking wordpress to do this. very clever.