Fixed detecting front-end index page