# Wikipedia oneboxing עם hash מקטע מקודד ב-URL

**URL:** <https://meta.discourse.org/t/wikipedia-oneboxing-with-url-encoded-section-hash/199143>\
**Category:** Feature\
**Created:** [4 באוגוסט,‏ 2021,‏ 2:44pm UTC](https://meta.discourse.org/t/wikipedia-oneboxing-with-url-encoded-section-hash/199143 "2021-08-04T14:44:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [4 באוגוסט,‏ 2021,‏ 2:44pm UTC](https://meta.discourse.org/t/wikipedia-oneboxing-with-url-encoded-section-hash/199143/1 "2021-08-04T14:44:56Z")

</div>

I haven’t categorized the topic as bug because it might be by design, not sure…  
so this works  
`https://fr.wikipedia.org/wiki/Th%C3%A9ologie#Platon`

> **[Théologie | Platon](https://fr.wikipedia.org/wiki/Th%C3%A9ologie#Platon)**
>
> Le premier à avoir employé le terme est le Grec Platon qui, dans La République (II, 379 a - 383 c), met dans la bouche d'Adimante, l'interlocuteur de Socrate, le mot θεολογία à propos de la mythologie, pour désigner la « science de la divinité » ou un discours vrai sur les dieux :

this doesn’t  
`https://fr.wikipedia.org/wiki/Th%C3%A9ologie#La_th%C3%A9ologie_selon_Aristote`

> **[Théologie](https://fr.wikipedia.org/wiki/Th%C3%A9ologie#La_th%C3%A9ologie_selon_Aristote)**
>
> La mise en forme de cet article est à améliorer (janvier 2024).
> La mise en forme du texte ne suit pas les recommandations de Wikipédia : il faut le « wikifier ».
> Les points d'amélioration suivants sont les cas les plus fréquents. Le détail des points à revoir est peut-être précisé sur la page de discussion.
> Pour une aide détaillée, merci de consulter Aide:Wikification.

Weirdly the span ids are `La_th.C3.A9ologie_selon_Aristote` and `La_théologie_selon_Aristote` 🤔 so I think there is something here: [discourse/lib/onebox/engine/wikipedia\_onebox.rb at 2f28ba318c3f650b1a0a76530021bc21bc8ab6f6 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/2f28ba318c3f650b1a0a76530021bc21bc8ab6f6/lib/onebox/engine/wikipedia_onebox.rb#L27)

> [@Rebaking for automatic header anchors?](https://meta.discourse.org/t/rebaking-for-automatic-header-anchors/186106/1):
>
> Also, the link at the top, where I linked to `#automatic-header-anchor-links` shows me that oneboxing doesn’t ( **yet?** ) know about the section for discourse-internal anchor links, though it does for wikipedia anchor oneboxing (which is awesome). So I’m hoping that oneboxing can grow that soon.

I sure hope so! 😁

---

_[View the full topic](https://meta.discourse.org/t/wikipedia-oneboxing-with-url-encoded-section-hash/199143)._
