Mercurial > libervia-web
annotate libervia/pages/forums/page_meta.py @ 1466:cff720e26089
pages (blog/view): activate pagination when a single item is shown:
`previous_page_url` and `next_page_url` are set when `item_id` is used. For now, they are
both activated even if there is no item before or after, as it would request to make extra
request to check it. This may be improved in 0.9 by using internal cache.
fix 399
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 30 Sep 2021 17:04:22 +0200 (2021-09-30) |
parents | eaf36fffcbdb |
children | 106bae41f5c8 |
rev | line source |
---|---|
1427
eaf36fffcbdb
pages (forums): better breadcrumbs
Goffi <goffi@goffi.org>
parents:
1124
diff
changeset
|
1 |
eaf36fffcbdb
pages (forums): better breadcrumbs
Goffi <goffi@goffi.org>
parents:
1124
diff
changeset
|
2 def prepare_render(self, request): |
eaf36fffcbdb
pages (forums): better breadcrumbs
Goffi <goffi@goffi.org>
parents:
1124
diff
changeset
|
3 self.pageRedirect("forums", request, skip_parse_url=False) |