Wikia/mercury — pull request #178 by benmai (2014-09-12 23:17:40+00:00)
Title: that's not what replaceWith is for

From the Ember docs, `replaceWith` does the following:

> Transition into another route while replacing the current URL, if possible. This will replace the current history entry instead of adding a new one. Beside that, it is identical to `transitionTo` in all other respects. See `transitionTo` for additional information regarding multiple models.

In this case `transitionTo` has already been called (that's why we're in the route), so `replaceWith` here basically calls `transitionTo` on the current URL, which **a)** won't work because `transitionTo` should be called on a route name and not a URL and **b)** would transition back to the current page anyway. I think you instead meant to sanitize the URL before attempting to find the appropriate article record.

@hakubo