Closes #1018: Routing callback parameters should be set before initialize method is called