GNOME Bugzilla – Bug 779097
Wikipedia links are misrendered when article contains :
Last modified: 2017-03-06 20:08:11 UTC
If a Wikipediareferens contains a : in the article part, the link we generate in the place bubble becomes incorrect. For an example, search for "Sankt Eriksplan" and select the metro station (the train symbol in the list). The Wikipedia referense in this example is: sv:S:t Eriksplan Looking at the code, in placeBubble.js:106 it's obvious it splits the string on : and only takes out the first two parts to contruct an https://<lang>.wikipedia.org/wiki/<article> linke, which in this case only gets "S" as the article part, so it should probably re-join the array parts after [0] instead of just taking parts[1].
Created attachment 346771 [details] [review] PlaceBubble: Handle colon in Wikipedia articles Properly handle a colon (:) character in a Wikipedia tag. Also URI escape the article part to avoid pontential problems, like & or ? in titles.
Review of attachment 346771 [details] [review]: lgtm!
Attachment 346771 [details] pushed as 9021ef6 - PlaceBubble: Handle colon in Wikipedia articles