Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occured in Search Results page #8

Open
NicoBlandel opened this issue Apr 1, 2015 · 4 comments
Open

Error occured in Search Results page #8

NicoBlandel opened this issue Apr 1, 2015 · 4 comments

Comments

@NicoBlandel
Copy link

Hi,
thanks for your plugin. I just discover an error on my search results page.
I understood that the JS only works for rewrited URL when finishing like "/page/2/"
but on a search page, we have an URL like "/page/2/?s=search_tag&<other_get_vars>".
So I changed reg exp in byscripts_ajax_posts_loader.js.
I replaced :
var next_link = page_link_model.replace(/\d+(/)?$/, page_number_next + '$1');
By :
var next_link = page_link_model.replace(//page/\d*?//, "/page/"+page_number_next+"/");
It works fine in my case but I don't if it works for all. Can you tell me if you have another solution and update your plugin ?
Have a good day,
Nico

@karlikdesign
Copy link

Hi Nico, thanks for posting this solution. I ran into the same problem and your fix worked like a charm!

@resdeni
Copy link

resdeni commented Jan 5, 2016

Hi I have problem with blog page its shows me
An error occured. Could not load more posts.

@resdeni
Copy link

resdeni commented Jan 5, 2016

page/2 Failed to load resource: the server responded with a status of 404 (Not Found)

@ahmadajmi
Copy link

ahmadajmi commented May 3, 2017

This worked for me

var next_link = page_link_model.replace('9999999999', page_number_next);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants