Those functions lived in Espace Win and Zed code for a very long time
and allow to get the current URL or to build an URL to create a link.
[ Base URL, with or without / ]
Small fixes have been added to allow to append a trailing slash to base URL:
the base URL can so be /subdir or /subdir/
That slash is respected for canonical URL, and ignored for /subdir/any/thing