Update route url() method

Use previous instance of route
Merge pull request #346 from kazelot/patch-1

Update route url() method
Refs #4747