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

How to avoid removing “page” parameter from URI? #71

Open
slotix opened this issue Jul 20, 2014 · 1 comment
Open

How to avoid removing “page” parameter from URI? #71

slotix opened this issue Jul 20, 2014 · 1 comment

Comments

@slotix
Copy link

slotix commented Jul 20, 2014

I use Digg-style with activated ajax support for my project. The annoying thing that it hides parameter ?page=N from URI.

So if I, for example, go back from details page to the general list page it returns me to the first page instead of actual page=N where it comes from.

In case of AJAX deactivation it works as expected and passes "page" parameter to GET. But it disappears right after AJAX activation.

I've tried to change the string #103 at endless-pagination.js from

return false;
to
return true;

Page parameter is passed to URL properly, but it seems at the same time AJAX stopped working forced to reload the whole page when switching between pages.

@slotix
Copy link
Author

slotix commented Oct 15, 2014

Just added the following string to endless-pagination.js before string #103 return false; window.history.pushState(3, document.title, context.url);

Now it works as expected.

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

1 participant