Fixes T175 - unbreaking link output for publish.php

Test Plan: it wrrks again

Reviewers: anh-chrome

Reviewed By: anh-chrome

Maniphest Tasks: T175

Differential Revision: http://phabricator.burningreality.de/D117