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

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -