Closed JosephSKh closed 7 years ago
Hi JosephSKh, thanks for your solution ! But i'm still having an issue, this is working for a two words search but this is not working for a 3 words search or more. Do you have any idea how to correct that ? Thanks. Regards.
EDIT : SOLVED :)
@tonarii Glad you solved it man and sorry for the late reply,, Hope it helped :) Also, you can post your solution for others
Thank you :)
@JosephSKh Hi, no problem and thanks for your answer. Actually i used the solution posted by AnchorRen : https://github.com/esimakin/twbs-pagination/issues/125
And that worked for me :)
Fixed. Closed
There's an issue if the URL got a space or %20, the active page is not correct and always set to (1)
test a URL like this "www.example.com?page=7&var=a a"
SOLVED BY: replacing:
var match, regexp = this.options.href.replace(/[-\/\\^$*+?.|[\]]/g, '\\$&');
with
var match, regexp = this.options.href.replace(/[-\/\\^$*+?.|[\]]/g, '\\$&').replace(' ','%20');