arboleya / ways-addressbar

AddressBar plugin for Ways router, supporting both pushState and #hash urls.
MIT License
6 stars 3 forks source link

Navigating back to "homepage" won't trigger url:changed #2

Closed hems closed 10 years ago

hems commented 10 years ago

ways = require('ways'); ways.use require('ways-browser')

ways '*', @url_changed

url_changed: ( req ) -> console.log "url changed #{req.url}"

// then navigate to an internal page, like:

ways.go "/articles" # will trigger url_changed

// then click the "back browser arrow", WON'T trigger url_changed

arboleya commented 10 years ago

Did the tests passed locally? The build is failing

arboleya commented 10 years ago

As you addressed this issue with other pull request, I'm going to concentrate this topic on the PR. https://github.com/serpentem/ways-browser/pull/3

hems commented 10 years ago

cool