Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Inconsistent Trailing Slash on Custom Post Types

  • Love this plugin, but I found an error that is creating some perceived duplicate content issues with Google using the following configurations:

    Permalink structure: /%postname%
    Wordpress SEO option “Enforce a trailing slash on all category and tag URL’s” checked / enabled

    Using the above, custom post type permalinks malfunction. The custom post types are accessible at the /%postname% permalink, however the plugin rewrites the permalinks to show up with a trailing slash (/%postname%/) on all archive pages, which it then automatically redirects back to /%postname% upon clicking the links to the custom post type single post view. Additionally, it gives the default canonical url for the custom post type posts incorrectly with the trailing slash. That can be remedied by manually specifying the canonical urls for custom post types. However I cannot figure out how to make the urls show up correctly as /%postname% without it adding a trailing slash.

    For an example of the aforemention issue visit the following url, which features one of my custom post type posts: . If you try adding a trailing slash you are automatically redirected back to that url. Originally it specified the canonical url for that custom post type post as “” but I manually overrode it to be “”.

    Now look at how it appears on my archive pages: OR

    If you hover over the article title link, you’ll see that it links to . Clicking that link will then automatically redirect to Google Webmasters tools is flagging these pages as duplicate content, and Google Analytics is counting them as two separate pages.

    Disabling the WordPress SEO plugin fixes the inconsistencies – but I really want to keep this plugin. Is this a bug or am I doing something wrong?



  • The topic ‘[Plugin: WordPress SEO by Yoast] Inconsistent Trailing Slash on Custom Post Types’ is closed to new replies.