.replace to fix redirect