FIX: Short URL resolution in cook-text (PR #10200)

Regressed in 3b51e05de2aeb0cff547befcfde442f5ceeb329d. Thanks to @romanrizzi for reporting!

GitHub