davis.js icon indicating copy to clipboard operation
davis.js copied to clipboard

request.isForPageLoad having issue while coming back to original server rendered url

Open maheskrishnan opened this issue 11 years ago • 1 comments

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()
  1. i am landing on page '/home'
  2. handler is called (for '/home'), request.isForPageLoad is TRUE.
  3. navigating to '/settings' , handler is called (for '/settings'), request.isForPageLoad is FALSE
  4. click back button, handler is called (for '/home'), request.isForPageLoad is TRUE. which should not be the case.

maheskrishnan avatar Aug 14 '13 20:08 maheskrishnan

+1

Just discovered this same problem!

bheithaus avatar Nov 26 '13 03:11 bheithaus