Oh ok, so the :blank needs to be specified under the &validate parameter AND inline in the input HTML tags?
Yep, resource ID 25 is published, it's a simple thank you page. My only issue right now, is if I'm subscribing and the subscription page is located in a container. The makeURL seems to be relative:
if the form is accessible in the following manner:
http://www.site.com/category/page.html
and my thank you page is located:
http://www.site.com/thank-you.html
After submitting the form in the above URL, the snippet tries to redirect to:
http://www.site.com/category/thank-you.html
Which obviously won't work because the thank you page isn't there :/.
I'm trying to modify my snippet with this:
$redirectId = $hook->getValue('crid');
$siteurl = $modx->config['site_url'];
$url = $modx->makeUrl($redirectId);
$final = $siteurl + '/' + $url;
$modx->sendRedirect($url,array('type' => 'REDIRECT_META'));
return true;
Having no luck though.. I'm don't know what siteurl is showing up. But if I use $siteurl in the sendRedirect function, the page will forward to the homepage after submitting the form.