Make local URL accessible into globals variable

It was usefull for me to get the local URL of the article into layouts. With the URL, I can populate OpenGraph attributes which need the complete URL of an article.

With this code, the URL is now accessible into ``$globals``, and can be read by layouts.