bug fix for enablePrettyUrl