The discussion revolves around a Wikipedia oneboxing issue where URL-encoded section hashes in links, such as #La_th%C3%A9ologie_selon_Aristote, are not properly handled, leading to incorrect excerpts. Benjamin_D notes that while the links work, the onebox summary fails to reflect the correct section content. Falco clarifies that the issue lies in the onebox engine’s inability to match the section ID due to outdated code, referencing the relevant file wikipedia_onebox.rb. jbalsas proposes a fix by unescaping the URL hash name, submitting a pull request here and seeking confirmation on the contribution process.
Oh you want the onebox summary to reflect the sub-section? That is controlled by
That is not matching
<h3>
<span id="La_th.C3.A9ologie_selon_Aristote"></span>
<span id="La_théologie_selon_Aristote">La théologie selon Aristote</span>
</h3>
The code is over 7 years old, so it’s very possible that the Wikipedia markup changed in the meanwhile. It’s a pr-welcome if someone wants to work on this.