defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

Empty url causes pjax to navigate back in history #591

Closed mikkotikkanen closed 7 years ago

mikkotikkanen commented 9 years ago

Calling pjax with

$.pjax({url: ''})

causes pjax to navigate back in history

mislav commented 9 years ago

Do you mean, the effect of that is the same as history.go(-1)? Strange. I don't see how that could happen.

mislav commented 9 years ago

What do you expect the result of navigating to an empty URL should be?