Here's my code:
var portal = $('#the_link').val();
var bdg = $('#initials').val();
var dbox = $('#decline');
alert("Don't forget to initialize the form.");
Everything is working great except for when my user gets to the last "else" clause and I want to redirect them to the url that's housed in the "portal" variable.
Instead of getting "https://the_new_link.com
," it appends that link to the existing url so it comes out "https://my_current_page.net/%7Bhttps://the_new_link.com
What am I missing?