fix redirect issue of page.js