Bug fix for overwriting old URL when no external redirect