Using Javascript, I'm trying to reload my page and add a parameter before doing so. I've added the alerts to debug why the parameter is not getting passed to the server:
alert('before: ' + window.location.href);
window.location.href = window.location.href + "?advanced_expand=true";
alert('after: ' + window.location.href);
window.location.reload();
What has me perplexed is that the first alert is:
before: http://localhost:3000/orgconf/quick_org_benefit/edit/784
and the second is:
after: http://localhost:3000/orgconf/quick_org_benefit/edit/784
without the parameter added...what gives?