Bug Fixed, Tutorials External Links withtout protocol

This commit is contained in:
Luis Fernando Molina committed 2021-01-18 09:37:51 +01:00
1 parent a5d2f3941a
commit ef394fdbb5
1 file changed
+1 -1
@@ -1373,7 +1373,7 @@ function newSuperalgosTutorialSpace() {
case 'Link': {
let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(paragraph)
let splittedText = text.split('->')
html = html + '<a class="tutorial-font-small tutorial-external-link" href="' + splittedText[1] + '" target="_blank">' + splittedText[0] + '</a>'
html = html + '<a class="tutorial-font-small tutorial-external-link" href="' + 'https://' + splittedText[1] + '" target="_blank">' + splittedText[0] + '</a>'
break
}
case 'Note': {