Satnav.js

[Click me] Route: { filter : 'example', page : 'pageid' }
[Click me] Route: { filter : 'another', page : 'pageid'}
Satnav({ html5 : false })                          // Set usage of html5 history api to false
    .navigate({
        path : '/?{filter}/?{page}',               
        directions : function(params) {            // Function called when path is resolved
            console.log('directions received');    
            console.log(params);
        }
    })
    .change(function(params, old) {                // Fired on hash change event
        console.log('change event heard');
        setTimeout(function() {
            Satnav.resolve();                      // Use Satnav to resolve to the directions for the current route after deferring
        }, 2000);
        return this.defer;                         // Return this.defer/Satnav.defer to defer the resolution of the directions
    })
    .otherwise('/')
    .go();                                         // Initiate Satnav, will handle deeplinking ie. determine initial route