Forums › Forums › Search & Filter Pro › Bookmarkable search string being lost
Tagged: bookmarkable search link, query
- This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by Ross.
-
Anonymous(Private) June 10, 2015 at 6:52 pm #19265
Hi Ross,
Having an odd issue with the bookmarkable search. On this site: http://maybrooks.com/job/
If you click a option it will update the result with the bookmarkable query string for a moment and then strip it out again as soon as the page scrolls. Then if you click into one of the result it will retail the query in the link, but clicking back loses it again.
I know you’re in the middle of dev on 2.0 but let me know if you get a chance to take a quick look and have any ideas.
Ross Moderator(Private) June 10, 2015 at 9:23 pm #19302Hi there
I had a look and certainly seems odd – like you mentioned, S&F seems to be updating the URL fine, but then it changes back to nothing.
Upon further inspection – make a few selections, without scrolling, and after a while you will see the URL remains – BUT, once you scroll the page the URL is updated again…
So I would say you have some script that changes the URL on JavaScript events like window scroll, and possibly window resize.
My guess this is built in to your theme or another plugin.
Thanks
Anonymous(Private) June 12, 2015 at 12:43 am #19382Thanks for taking a look! Good thoughts, and for future reference for anyone that may run into this, it was the Jetpack Infinite Scroll script that takes out that query string on scroll. The workaround I found was to add a function call of:
wp_deregister_script('the-neverending-homepage');
on those search pages since the infinite scroll doesn’t need to be added on them…
-
AuthorPosts