I understand, thank you. But I still would like to
have it directly in
the result - if possible.
I want to return a "HTML snippet", e.g. in a <div>, containing the
parsed data (e.g. from a template). So this means, I am not generating a
whole page and it might not be possible to change the content of head.
Include the hostname in $wgArticlePath