diff --git a/src/js/react_views/CommandView.jsx b/src/js/react_views/CommandView.jsx index 362c4a6e..4eb55ebf 100644 --- a/src/js/react_views/CommandView.jsx +++ b/src/js/react_views/CommandView.jsx @@ -100,14 +100,26 @@ var CommandView = React.createClass({ var paragraphs = this.state.result.split("\n"); var result = []; for (var i = 0; i < paragraphs.length; i++) { - result.push( -

- ); + if (paragraphs[i].startsWith('https://')) { + result.push( + + ); + } else { + result.push( +

+ ); + } } return (

diff --git a/src/js/sandbox/index.js b/src/js/sandbox/index.js index c9131e23..1227cfdb 100644 --- a/src/js/sandbox/index.js +++ b/src/js/sandbox/index.js @@ -228,7 +228,7 @@ var Sandbox = Backbone.View.extend({ var url = 'https://learngitbranching.js.org/?NODEMO&command=importTreeNow%20' + escape(treeJSON); command.setResult( - intl.todo('Here is a link to the current state of the tree: ') + url + intl.todo('Here is a link to the current state of the tree: ') + '\n' + url ); command.finishWith(deferred); },