Fixing server paths in token and resource snippet