public static function bugReportUrl() { $username = User::name(); $revision = ProjectInformation::revision(); $url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $useragent = $_SERVER['HTTP_USER_AGENT']; $comment = "Username: [{$username}]\n" . "Revision: {$revision}\n" . "URL: {$url}\n" . "User-agent: {$useragent}\n\n" . "How can we reproduce the problem?\n1. \n2. \n3. \n\nWhat is the expected output? What do you see instead?\n "; $parameters = "?comment=" . urlencode($comment); return ProjectInformation::projectUrl() . "issues/entry" . $parameters; }