Fix path switching for home page