Skip to content

Error occured in Search Results page #8

Open
@NicoBlandel

Description

@NicoBlandel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions