davis.js
davis.js copied to clipboard
request.isForPageLoad having issue while coming back to original server rendered url
let say i have a pages '/home' and '/settings'. and i have 2 handlers for this.
var app = Davis(function () {
this.get('/home', function (request) {
alert(request.isForPageLoad);
});
this.get('/settings', function (request) {
alert(request.isForPageLoad);
});
})
app.start()
- i am landing on page '/home'
- handler is called (for '/home'), request.isForPageLoad is TRUE.
- navigating to '/settings' , handler is called (for '/settings'), request.isForPageLoad is FALSE
- click back button, handler is called (for '/home'), request.isForPageLoad is TRUE. which should not be the case.
+1
Just discovered this same problem!