appending navis code to work on subdomains