solve the problem that can not locate to the default page when
first load the page