XWIKI-9376: Short URL don't work anymore
* Fix regression introduced by previous commits