Add a method to get the absolute url for a route

Fix #10926
Add unit test

This unit test is shitty but at least it works...
Merge pull request #10932 from owncloud/issue/10926

Add a method to get the absolute url for a route