{"id":3868,"date":"2020-04-15T03:39:55","date_gmt":"2020-04-15T03:39:55","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=3868"},"modified":"2023-12-27T11:00:00","modified_gmt":"2023-12-27T11:00:00","password":"","slug":"prevent-changing-url-with-ajax-pagination","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/prevent-changing-url-with-ajax-pagination\/","title":{"rendered":"Prevent changing URL with Ajax pagination"},"content":{"rendered":"<p>Updating URL when changing Ajax page is a part of recommended checklists by Google to improve SEO for Ajax pagination (numeric pagination, load more, infinite scroll). That helps content in other pages are indexed.<\/p>\n<p>For any reason you don&#8217;t want that, to prevent URL from changing:<\/p>\n<ul>\n<li>With Content Views Pro:<br \/>\nPlease add this code to <strong>Custom JS<\/strong> field (the right textarea) in Content Views >> Settings page:<\/p>\n<pre style=\"font-size:13px\">\nwindow.cv_pagination_no_update_url = true;\n<\/pre>\n<\/li>\n<li>With Content Views free:<br \/>\nPlease check this document (<a href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-custom-javascript-content-views-free-version\/\" target=\"_blank\" rel=\"noopener noreferrer\">click here<\/a>) to add above script to your site.<\/li>\n<\/ul>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updating URL when changing Ajax page is a part of recommended checklists by Google to improve SEO for Ajax pagination (numeric pagination, load more, infinite scroll). That helps content in other pages are indexed. For any reason you don&#8217;t want that, to prevent URL from changing: With Content Views Pro: Please add this code to &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/prevent-changing-url-with-ajax-pagination\/\"> <span class=\"screen-reader-text\">Prevent changing URL with Ajax pagination<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[25],"doc_tag":[],"class_list":["post-3868","docs","type-docs","status-publish","hentry","doc_category-adjustment"],"year_month":"2026-09","word_count":92,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Adjustment","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/adjustment\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=3868"}],"version-history":[{"count":2,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3868\/revisions"}],"predecessor-version":[{"id":5445,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/3868\/revisions\/5445"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=3868"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=3868"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=3868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}