Add a method to get the absolute url for a route

Fix #10926

@LukasReschke @Raydiation @icewind1991 
You've figured it out right :)

This little piece of naughtiness needs to come in from the constructor. Changing the constructor shouldnt break anything btw,