May 2019
Beginner to intermediate
466 pages
10h 44m
English
All right, that wasn't so hard! But the next issue is more difficult. The fourth step is all about the setup. We established that we need to capture all the internal Wikipedia links so that when the player clicks on a link, they are taken to our app instead of going to the original Wikipedia article. Half of this work is done by Wikipedia's content itself because it uses relative URLs. That is, instead of using absolute URLs in the form of https://en.wikipedia.org/wiki/Wikipedia:Six_degrees_of_Wikipedia, it uses the relative form /wiki/Wikipedia:Six_degrees_of_Wikipedia. This means that when rendered in the browser, these links will inherit the domain name (or the base URL) of the current host. That is, when ...
Read now
Unlock full access