fixed some bugs on subpage load

fixed bugs about urls