Fixed deprecated route methods
Merge pull request #2726 from WouterJ/issue_2719

Fixed deprecated route methods