Many thanks Gordon!
I was about to go eahead and answer your (as usual) very nice proposal.
However Tim Hunt found the glitch: a parameter at admin level that says whether you need a slash or not before your relative paths.
Thanks again Gordon and as we say: "à charge de revanche*"
Philippe