Added prepareUrl function to inject params into route url