diff --git a/client/main.js b/client/main.js
index 30110eb97e..8dcc2a19db 100644
--- a/client/main.js
+++ b/client/main.js
@@ -69,14 +69,14 @@ $(document).ready(function() {
$('#search-issue').unbind('click');
$('#search-issue').on('click', function() {
var queryIssue = window.location.href.toString();
- $('#issue-modal').modal('hide');
window.open('https://github.com/FreeCodeCamp/FreeCodeCamp/issues?q=is:issue is:all '+ queryIssue.substr(queryIssue.lastIndexOf('challenges/') + 11).replace('/', ''), '_blank');
});
$('#report-issue').unbind('click');
$('#report-issue').on('click', function() {
- var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue. Please describe how to reproduce it, and include links to screenshots if possible.';
- textMessage += ' My User Agent is: ' + navigator.userAgent + '
.';
+ var textMessage = 'https://github.com/freecodecamp/freecodecamp/issues/new?&body=Challenge ' + window.location.href + ' has an issue.';
+ textMessage += ' User Agent is: ' + navigator.userAgent + '
.';
+ textMessage += ' Please describe how to reproduce this issue, and include links to screenshots if possible.%0A%0A';
textMessage = textMessage.replace(';', ','); //GitHub cuts User Agent text because of ';' symbol so I just replace it with ','
$('#issue-modal').modal('hide');
window.open(textMessage, '_blank');