jquery-pjax icon indicating copy to clipboard operation
jquery-pjax copied to clipboard

Only set pjax.state if pushing or replacing

Open AlexHill opened this issue 11 years ago • 0 comments

PJAX with both both options.push and options.replace set to false can be used to simply replace chunks of page content, without touching your navigation history.

This use case is undocumented and not robust, but this tiny change ensures that PJAX back/forward behaviour stays correct even if PJAX is used in this "stateless" way elsewhere on the page.

AlexHill avatar Jun 05 '14 03:06 AlexHill