oauth2Resource: use relative path to check index.html existence