fixed functional test when enablePrettyUrl is false.