Xpath gets absolute links

The link to the picture crawled by

xpath is a relative link:
div [@ class="thumb"] / a picturehref. The result is 19.jpg
how to get an absolute link, similar to http://www.example.com/19.jpg

.

clipboard.png

is there any good way? thank you very much!

Mar.22,2021

there is no good way to take out the original value first, and then calculate the absolute URL based on the current URL. Specific algorithm can be Baidu: js relative to the URL to the absolute

Menu