• Resolved michaelboelen

    (@michaelboelen)


    Thanks for your plugin. I’m on the pro version and noticed that I get more 301 redirects recently. When looking at the Tag pages, it looks like there is a slash missing at the @id (just before the #). Google sees them as links and tries to crawl the ones without the slash as well now.

    Another thing is that items in a category/tag list are typically not in order. Could you add a property to make it unordered?
    Suggestion: “itemListOrder”:”Unordered” (https://schema.org/ItemList)

    Both items also apply to Category pages.

    Thank you,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    An @id is NOT a URL — it is a unique identifier for a block of JSON-LD. It is easier to include the URL as part of the unique @id (and has become a defacto standard), but a simple MD5 hash, for example, would work as well. ?? See https://www.w3.org/TR/json-ld/#node-identifiers for more info.

    WPSSO Core currently removes the trailing slash to minimize the string, but just in case Google tries to use that URL, I’ll leave the slash as-is in the next WPSSO Core version. ??

    Posts in the ItemList are ordered by descending date, as is the default for WordPress archive pages. Adding “itemListOrder” to specify that order would be a good idea. Let me look at that for the next version of WPSSO JSON. ??

    Thanks,

    js.

    • This reply was modified 6 years, 4 months ago by JS Morisset.
    Thread Starter michaelboelen

    (@michaelboelen)

    Thanks JS.

    I know the @id is not an URL and simply an identifier. But if you are using it, why not use the original URL (with a slash at the end).

    As said, I see crawls now by Google, thinking it is an URL they don’t know yet. Which is a shame, as it will be responded to with a 301 and redirect to the ‘right’ URL. You said you removed the slash in the next version. But as it was already missing, do you mean you added it? ??

    It might be good to look beyond what WordPress itself is doing, as this is about the contextual meaning of the list and their items. Personally, I would give it the “Unordered”, as the items may be ordered by WordPress, but contextually they are not. They are simply blog posts grouped together by the same tag or category. It would be different if it were particular historic events (ordered by date) or a top 10 list (specifically ordered by their position from 1 to 10).

    Cheers,

    Michael

    Plugin Author JS Morisset

    (@jsmoriss)

    Yes, I meant that WPSSO would leave the slash as-is in the next version – I’ve corrected the text of my reply. ??

    By default WordPress returns posts ordered by descending date. I’ll add a list order property as https://schema.org/ItemListOrderDescending.

    js.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category/Tag: slash missing in @id and ordering’ is closed to new replies.