Identify and extract next page url

Get the xpath for the URL of the next page in the current list of biographies, convert it to a valid wikipedia URL.
I'd extract this to another object - it's very complicated for controller logic.