Fix linkToPublic and linkToAbsolute.

Refs #8218

`OC_Helper::linkToPublic()` didn't create an absolute URL.

@LukasReschke @DeepDiver1975