add check for global variables and caps variables to getSiteUrl