title: Failed to execute 'open' on 'Window': Unable to open a window with invalid URL '%3127.0.0.1:3000'
body: <p>I'm making a <em>"open link in new tab"</em>. I'm using <code>window.open()</code> to open new tab.</p>
  
  <p><strong>my code</strong>:</p>
  
  <pre><code>$scope.doOpenLink = ()-&gt;
      domain = '127.0.0.1'
      port = '3000'
  
      window.open("#{domain}:#{port}");
  </code></pre>
  
  <p>but I get this error:</p>
  
  <blockquote>
    <p>Error: Failed to execute 'open' on 'Window': Unable to open a window
    with invalid URL '%3127.0.0.1:3000'.</p>
  
  <pre><code>at MyServerScopeController.vm.doOpenLink (base-adb5b1181b.js:4294)
  at fn (eval at compile (angular-29115c1a5c.js:15156), &lt;anonymous&gt;:4:286)
  at callback (angular-29115c1a5c.js:26744)
  at Scope.$eval (angular-29115c1a5c.js:17972)
  at Scope.$apply (angular-29115c1a5c.js:18072)
  at Scope.scopePrototype.$apply (hint.js:1558)
  at HTMLAnchorElement.&lt;anonymous&gt; (angular-29115c1a5c.js:26749)
  at HTMLAnchorElement.dispatch (jquery-888d4551b8.js:4737)
  at HTMLAnchorElement.elemData.handle (jquery-888d4551b8.js:4549)
  </code></pre>
  </blockquote>
  
  <p>my domain <code>'127.0.0.1:3000'</code> rendered as <code>'%3127.0.0.1:3000'</code>. any idea on how I can fix it? Thanks</p>