handle ghost path when searching for the homepage