Server side check for local url to prevent unnecessary string replacing in prod.