Fixed routing issues under html5 mode.