WIKI-518: Exporting to PDF doesn't work correctly

Fix description: Get the correct domain name.