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.
What is this line doing?