WordPress.org

Forums

Advanced AJAX Page Loader
[resolved] URL changes when scrolling to top, if not on homepage... (3 posts)

  1. motwera
    Member
    Posted 1 year ago #

    Hi, i have been just recently using this plugin, and it is very good... but one problem..

    When I go to a certain page, post with the plugin working... i noticed that the url of the post/page changes when i scroll up, is there any fix to this?

    Thanks

    http://wordpress.org/plugins/advanced-ajax-page-loader/

  2. Himansu
    Member
    Posted 1 year ago #

    For remove that content on URL remove this code from your ajax-page-loader.js file

    if (push != 1) {
    			//TODO: implement a method for IE
    			if (typeof window.history.pushState == "function") {
    				var stateObj = { foo: 1000 + Math.random()*1001 };
    				history.pushState(stateObj, "ajax page loaded...", path);
    			} else {
    				if (AAPL_warnings == true) {
    					alert("BROWSER COMPATIBILITY: \n'pushState' method not supported in this browser, sorry about that!");
    				}
    			}
    		}
  3. Dean Williams
    Member
    Plugin Author

    Posted 1 year ago #

    I will add this as an option in the new version, thanks for bringing your requirements to my attention.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced AJAX Page Loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic