Turning off URL Encoding
Normally YubNub will apply "URL encoding" to parameters. For example, "gim Mork & Mindy" gets turned into http://images.google.com/images?q=Mork+%26+Mindy (note that the & became +%26+). This is what works for most websites. However, W. Van Hooste pointed out that this does not work for the Internet Archive Wayback Machine. To tell YubNub to turn off URL encoding, include the following text somewhere in your URL: [no url encoding]
For example, if you make a command called arch with the following URL...
...when the user types... ...they will be taken to... If you hadn't specified [no url encoding], the user would have been taken to http://web.archive.org/web/*/http%3A%2F%2Fwww.ing.be%2F
For example, if you make a command called arch with the following URL...
http://web.archive.org/web/*/%s[no url encoding]
arch http://www.ing.be/
http://web.archive.org/web/*/http://www.ing.be/
2 Comments:
I guess Alexa also falls under that condition as well. However, Alexa does work when you encode it.
kunal - Good to hear that Alexa will still accept encoded parameters. If you see any commands that need their parameters left unencoded, let me know and I will fix them.
Post a Comment
<< Home