history mode for web and not for cordova