preview link fix (for https enabled servers)