fix main page to detail url