Automattic / Automattic/jetpack

Infinite Scroll: Browser Back Button Not Returning to Initial Page

Open
#222 8 comments 1 reaction 0 assignees View on GitHub
[Feature] Infinite Scroll [Pri] Low Customer Report [LEGACY] Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

When using Infinite Scroll, the Back button on the browser is unable to return to the initial load of posts.
1. Activate Jetpack and Infinite Scroll
2. Visit your site's home page
3. Scroll down: "page/2/" appears at the end of the URL.
4. Click on a post
5. Click on the browser's back button: you're back to Page 2
6. Click on the browser's back button again: you're stuck on page 1, the /page/2/ parameter doesn't disappear.

Tested on Chrome 32.0.1700.107, Firefox 27.0.1 on OS X.
Ported from [2015-plugins](https://plugins.trac.wordpress.org/ticket/2015)

Contributor guide

Open the contributing guide

Research direction

Reproduce the six-step sequence on the site's home page with Jetpack and Infinite Scroll enabled, then inspect the Infinite Scroll browser-history behavior around the page/2/ URL state. Done means opening a post and pressing Back twice returns to the initial page URL without the /page/2/ parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, wordpress
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.