google-chromemeteoriron-routerchrome-iosios-web-app

How do you go to the previous route in iron-router?


I'm using an event handler to go to the previous URL/route:

'click #back': ->
  history.back()

This works in Chrome desktop, Chrome devtools mobile device view, and in Safari on a physical device itself (iOS 8.1.2), but not in Chrome on the device. Behavior is:

Is this a mobile Chrome problem, or should I be using some iron-router API like Router.back()?


Solution

  • history.back() is the method supported by iron-router, it just appears there's a problem with iOS Chrome.