fixing post url in main page