title: Button onclick not redirecting to correct URL
body: <p><code>
  &lt;button id="promoCodeSubmit" onclick="window.location.href='http://www.test.com'+document.getElementById('promoCodeValue').value;"&gt;Apply&lt;/button&gt;
  </code></p>
  
  <p>Trying to use the code above to redirect a page. console.log is printing out the correct URL, but page gets redirected incorrectly. Any ideas why?</p>