Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

mehulkar/ember-example-replace-push-state

Repository files navigation

ember-example-replace-push-state

Problem

In certain cases, router.replaceWith calls pushState on the window.history, instead of replaceState. This adds an entry to the history, which messes up the back button.

Debugging Overview

When refreshModel is true for a query parameter, Ember takes the replaceWith transition triggered by the user, aborts it, because it thinks the query param is stale and creates a new transitionTo transition, which ends up calling pushState.

About

router.replaceWith + refreshModel causes pushState

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published