add auto get page url code