django-endless-pagination
django-endless-pagination copied to clipboard
Support page in the URL, e.g. /items/page/2
Is this relevant for this application? Design decision needed.
This could be a good idea. But how would you do that?
In my opinion, a middleware that parses request.path
before rewriting it with the correct GET parameters could be easy solution. But how could we properly refer to such pages using {% url %}
?
There is also another url design that could be interesting for the ajax view: /items/#page=2
. I read somewhere that this was the proper way to dynamically rewrite a URL when you don't want to push the new scrolled page into the browser history (and since this leads to annoying behaviours, I would definitely prefer this).
EDIT: This is related to #2.