Add support for browser history

Created on 24 October 2020, about 4 years ago
Updated 22 April 2024, 7 months ago

Problem/Motivation

The current functionality works great bus does not support the use of browser history. When, for example, a user visits a news list page, uses the pager, and clicks on one of the items the 'back' button will take the user back to the list page but the page only shows the initial items.

Steps to reproduce

  1. Create a list with items
  2. Use the 'Views Show More' pager to load more items
  3. Click on one of the items (to go to the detail page)
  4. Use the browser 'back' button

Proposed resolution

Add an extra option to the settings to 'activate' the add the pager pages to the browser history. This can be done with History.pushState().

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands borisr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024