Use static domain for assets

From #6233.
missing PHPdocs.