support createUrl function for router.