Mobile app version of vmapp.org
Login or Join
Kristi941

: How do you get MediaWiki to render URLs in the usual way? I've noticed that whenever a URL is long and contains unusual characters MediaWiki renders it incorrectly, for instance this URL: http://chemapps.stolaf.edu/jmol/jmol

@Kristi941

Posted in: #Mediawiki #Url

I've noticed that whenever a URL is long and contains unusual characters MediaWiki renders it incorrectly, for instance this URL: chemapps.stolaf.edu/jmol/jmol.php?model=C[C@H](N)CC1=CC=CC=C1 gets rendered such that the C@HCC1=CC=CC=C1 gets rendered as separate from the rest of the URL. I would like it to be rendered in its full form. How do I do this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

The characters that MediaWiki disallows in URLs need to be percent-encoded.

So, for example, your link should be written as chemapps.stolaf.edu/jmol/jmol.php?model=C%5BC@H%5D(N)CC1=CC=CC=C1 (%5B and %5D are the codes for [ and ]).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme