add structure global variables to URLs whose first match is a structure URI