I am using the default behavior of jQuery Mobile where my href links are pointing to different pages on my site. This changes the URL completely. Is there a way to make it update the hash instead of changing the URL? The page alone does not work when going directly, so a hash would make sense (good for bookmarking). Also I would not have to worry about relative pathing from there since I remain in the root of my site. Any way to do this like it does for dialog?
Share
You can disable this by setting
pushStateEnabledtofalse.This is done in
mobileinitevent. For example:Note that
mobileinitmust be attached before jQuery mobile is included into page.For more information take a look at jQuery Mobile configuration defaults documentation page.