• Resolved plant45226

    (@plant45226)


    Hi Sybre,

    Thanks for the great plugin.

    There is an issue where Google is reporting duplicate pages in the search console, when a static page is selected for the homepage and there is no separate blog page selected in the “Reading” settings.

    While “domain.com/page2/” does not exist, adding “?order” to the URL will show some type of archive: “domain.com/page2/?order=……”.

    The “feature” is described here: https://wordpress.com/support/posts/show-your-posts-in-chronological-order/

    The main problem is that these pages don’t have a canonical tag. This means Google treats “domain.com/page2/?order=1”, “domain.com/page2/?order=2”, “domain.com/page2/?order=2x”, etc. as different pages. Google also reports every single version of these pages as “duplicate pages without canonical tag”.

    Do you have any idea how to fix this? Are you able to add a canonical tag to these pages with your plugin?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Howdy!

    WordPress.com is a paid subscription service to which we are not granted access.

    However, similarities between their service and regular WordPress exist. The page you linked offers six methods to display posts this way; which are you using?

    I recommend setting the “noindex” tag for robots; however — these pages change by user-inputted URLs, which is prone to create spam. Once we know how to detect these pages, we can exclude them via the robots tag.

    Thread Starter plant45226

    (@plant45226)

    Thanks for your quick reply.

    I used the WordPress.com documentation as a reference. This is a www.remarpro.com issue.

    Here is an example of what I am referring to:

    https://theseoframework.com/page/3/?order=xyz123
    https://theseoframework.com/page/3/?order=xyz1234
    https://theseoframework.com/page/3/?order=xyz12345

    Three duplicate pages. All three of them without a canonical tag. Isn’t that an issue?

    • This reply was modified 2 years, 3 months ago by plant45226.
    Plugin Author Sybre Waaijer

    (@cybr)

    That definitely is an issue.

    WordPress has various ways to generate broken pages; I wasn’t aware of this one yet. I shall add a check for that in the next update and dig through WordPress’s code to find more issues like these.

    Thanks for the report ?? If you wish for a workaround in the meantime, let me know.

    Plugin Author Sybre Waaijer

    (@cybr)

    Here’s a snippet to workaround this issue until I release an update:

    add_filter( 
    	'the_seo_framework_exploitable_query_endpoints', 
    	function( $endpoints ) {
    		$endpoints['not_home_as_page'][] = 'order';
    		$endpoints['not_home_as_page'][] = 'orderby';
    		$endpoints['not_home_as_page'][] = 'taxonomy';
    		$endpoints['not_home_as_page'][] = 'withcomments';
    		$endpoints['not_home_as_page'][] = 'withoutcomments';
    		$endpoints['not_home_as_page'][] = 'calendar';
    		$endpoints['not_home_as_page'][] = 'exact';
    		$endpoints['not_home_as_page'][] = 'more';
    		$endpoints['not_home_as_page'][] = 'pb';
    		$endpoints['not_home_as_page'][] = 'term';
    		return $endpoints;
    	} 
    );

    (Where do I place filters?)

    • This reply was modified 2 years, 3 months ago by Sybre Waaijer. Reason: Also added 'orderby'
    • This reply was modified 2 years, 3 months ago by Sybre Waaijer. Reason: Also added 'taxonomy' and 'withcomments'
    • This reply was modified 2 years, 3 months ago by Sybre Waaijer. Reason: Added 'withoutcomments', 'calendar', 'exact', 'more', 'pb', and 'term'
    Thread Starter plant45226

    (@plant45226)

    Thanks for looking into a fix!

    Sure, please let me know if you have a workaround ready.

    Plugin Author Sybre Waaijer

    (@cybr)

    I put the workaround in my previous comment and just updated it with more endpoints I found harmful. All those endpoints do require more investigation before making it in the full release, but it should steer Google away from those broken pages and resolve the warnings.

    Thanks again for the report!

    Thread Starter plant45226

    (@plant45226)

    Thanks for the great support!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate page issue without canonical’ is closed to new replies.