fixed route error when enter index page without hash