# Backwards SiteNavigationElement in structured data

**URL:** <https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212>\
**Category:** Bug\
**Created:** [22.Январь.2019 22:08:28 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212 "2019-01-22T22:08:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)\
**Post date:** [22.Январь.2019 22:08:28 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/1 "2019-01-22T22:08:28Z")

</div>

According to Google Structured Data Testing Tool, the URL is “next page -\>” and the name is “[https://example.example/latest?page=1](https://example.example/latest?page=1)”

- for meta [https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fmeta.discourse.org](https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fmeta.discourse.org)

- for my own forum [https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fforum.bors.tech](https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fforum.bors.tech)

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [22.Январь.2019 22:12:29 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/2 "2019-01-22T22:12:29Z")

</div>

Right, so what’s the bug? Counting starts at 0, so “next page” would be 1. Or am I missing something?

---

<div class="post-metadata">

**Author:** ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)\
**Post date:** [22.Январь.2019 22:17:05 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/3 "2019-01-22T22:17:05Z")

</div>

Click the top-level SiteNavigationElement (not the ItemList). The table is pretty clearly wrong (as shown in the screenshots, but copied here for readability).

| key | value |
| --- | --- |
| @type | `SiteNavigationElement` |
| url | `next page ->` |
| name | `https://forum.bors.tech/latest?no_definitions=true&no_subcategories=false&page=1` |

The URL and the Name should be swapped.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [22.Январь.2019 22:24:24 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/4 "2019-01-22T22:24:24Z")

</div>

Oh, I see now. Sorry, I thought you were questioning the number, not the title and data linkage. Yeah, that seems backwards.

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [23.Январь.2019 15:30:48 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/6 "2019-01-23T15:30:48Z")

</div>

Should be fixed by:

[https://github.com/discourse/discourse/commit/096a81158a84576e0dea867ee44dd1d5734139cd](https://github.com/discourse/discourse/commit/096a81158a84576e0dea867ee44dd1d5734139cd)

Just tried on [https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fmeta.discourse.org](https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fmeta.discourse.org)

and I get:

 ![35](https://global.discourse-cdn.com/meta/original/3X/1/d/1d970679662c6b649c9b18182658946525af5477.png)

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [26.Январь.2019 17:00:27 UTC](https://meta.discourse.org/t/backwards-sitenavigationelement-in-structured-data/107212/7 "2019-01-26T17:00:27Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
