I am using the Wikipedia API to get information and display it in my web application.
I use a URL like the one below to access the API with an AJAX request in my JavaScript. http://en.wikipedia.org/w/api.php?format=json&action=query&prop=revisions&titles=Barack%20Obama&rvprop=content&rvsection=0&rvparse
However, in the returned content, hyperlinks are specified with relative URLs of the form '/wiki/resource'. Now, when I display this content on my web page, the URLs become like
http://localhost:8003/wiki/resource
How can I make the URLs redirect to http://en.wikipedia/wiki/resource instead?
Thanks in advance!