0

I'm having some trouble figuring out how to resolve this issue I'm having with URLs.

Within one of my commands, I'm trying to link to outside sites by doing the following:

this.echo('<a href="' + philip.contact[contact[0]] + '">' + contact[i] + '</a>', {raw: true});

Where philip.contact[contact[0]] is the string "https://medium.com/". I get the following URL from the jquery terminal:

http://philipyoo.github.io/[[!;;]https://medium.com/]

Or I tried the following:

this.echo('<a href="www.google.com" target="_blank">' + mylink + '</a>', {raw: true});

And get the following:

http://philipyoo.github.io/https://www.google.com]/

No [[!;;] in the url.

I saw the following closed issue for formatting multiple param urls, but I don't really follow the conversation. I'm not formatting my URLs in any way, but I get situations where I'll get the [[!;;] inserted into my URLs.

Any help is much appreciated!

philip yoo
  • 2,462
  • 5
  • 22
  • 37
  • It's a bug, if you use raw it should not convert the urls (internaly the terminal is replacing urls by [[!;;]url] and then later it convert `[[!;;]` to links), in your second echo you didn't put http so it treat it as local url if you look at insipect the element in developer tools you will see that href is `"www.google.com"`, you can [create issue on github](https://github.com/jcubic/jquery.terminal/issues/new) – jcubic Nov 28 '16 at 16:45
  • 1
    Also you can echo links using `[[!;;;;https://www.google.com]text]` but you need to download latest version of the plugin. You have 0.9.2 which is pretty old. – jcubic Nov 28 '16 at 16:57
  • @jcubic Thank you! Updating to the latest version worked. Did you want me to create an issue anyways? – philip yoo Nov 29 '16 at 21:22
  • no, I've fixed urls with raw option in version 0.11.20 – jcubic Nov 30 '16 at 10:58
  • @jcubic great, thanks again for your help and all your great work! – philip yoo Nov 30 '16 at 21:38

0 Answers0