django-endless-pagination icon indicating copy to clipboard operation
django-endless-pagination copied to clipboard

Support page in the URL, e.g. /items/page/2

Open frankban opened this issue 11 years ago • 1 comments

Is this relevant for this application? Design decision needed.

frankban avatar Jan 08 '13 09:01 frankban

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.

BertrandBordage avatar Jan 08 '13 17:01 BertrandBordage