Wikipedia API - Relative URLs -
I am using the Wikipedia API to get information and display it in my web application.
I use a URL below to access the API in my JavaScript with an AJAX request
However, in the returned content, hyperlinks should be form / 'wiki / Resource 'has been specified with the relative URL. Now, when I display this content on my web page, like the URL
http: // localhost: 8003 / wiki / resource Maybe I redirect the URL instead?
Thanks in advance! For example:
Synonyms front URL for example:
wikiRelativeUrl = getRelativeUrl (); // something like / wiki / source baseUrl = "http: //en.wikipedia"; FullUrl = baseUrl + wikiRelativeUrl; // Use full URL
Comments
Post a Comment