0

From within my iOS app these open the correct page (for the film "&ME") via openURL:

wikipedia://en.wikipedia.org/wiki/&ME https://en.wikipedia.org/wiki/&ME https://en.wikipedia.org/w/index.php?search=%26ME

But these don't (they open some other, i.e. error, page):

wikipedia://en.wikipedia.org/w/index.php?search=&ME wikipedia://en.wikipedia.org/w/index.php?search=%26ME wikipedia://en.wikipedia.org/w/index.php?search=%2526ME wikipedia://en.wikipedia.org/w/index.php?search=%25%26ME

Searches not containing '&' work fine.

If you've solved this, what did you do? Or can you suggest another way to escape ampersand I haven't tried? Or does this look like a bug in the iOS Wikipedia app?

svick
  • 236,525
  • 50
  • 385
  • 514
vonlost
  • 875
  • 1
  • 7
  • 11
  • This may be helpful: https://stackoverflow.com/a/8088484/4797324 – toma Jun 18 '17 at 08:38
  • Thanks, but that discussion addresses how to obtain %26; my problem is that %26 doesn't work in one case (iOS Wikipedia app search), but works in all other cases (iOS Wikipedia app link, iOS Google and IMDb apps). I also tried "&amp" and "%26amp" (I'll try anything!) with no luck. – vonlost Jun 18 '17 at 16:38
  • & symbol separates different parameters. So 'search=&ME' means parameter 'search' with empty value and one more incomplete parameter 'ME'. – toma Jun 18 '17 at 16:58
  • Thanks again, but I do know what *doesn't* work! ;-) – vonlost Jun 18 '17 at 18:34

1 Answers1

0

It was an iOS Wikipedia app bug, will be fixed in rev 5.6.0

vonlost
  • 875
  • 1
  • 7
  • 11