Add a method to get the absolute url for a route

Fix #10926

@LukasReschke @Raydiation @icewind1991