Problem/Motivation

<a class="o-button o-button--standard o-button--primary webform-dialog webform-dialog-wide button" href="/node/32" data-once="webform-dialog">Request a Demo</a>

Results in a 404 error in the console.

POST https://website.com/node/32?_webform_dialog=1&_wrapper_format=drupal_modal 404 (Not Found)
send @ jquery.min.js?v=3.7.1:2
ajax @ jquery.min.js?v=3.7.1:2
Drupal.Ajax.eventResponse @ ajax.js?v=10.4.1:799
(anonymous) @ ajax.js?v=10.4.1:646
dispatch @ jquery.min.js?v=3.7.1:2
v.handle @ jquery.min.js?v=3.7.1:2

viewing that URL "/node/32?_webform_dialog=1&_wrapper_format=drupal_modal" directly, gives me the ajax blob ... so its loading something...

ajax blob

Yes, "/node/32" is a real page, that is published..

Thoughts?

Thanks.

Comments

alphex created an issue. See original summary.

alphex’s picture

Issue summary: View changes
StatusFileSize
new83.06 KB
alphex’s picture

Classifying this as a bug/regresion, because I know it works... I have an older dev environment running Version: 6.2.2 that does work...

liam morland’s picture

Version: 6.2.9 » 6.2.x-dev

Can you use git bisect to figure out which commit broke it?

jrockowitz’s picture

Status: Active » Closed (works as designed)

Your HTML example has the once="webform-dialog" attributes which prevent the JS from being triggered, it needs to be removed.

Change

<a class="o-button o-button--standard o-button--primary webform-dialog webform-dialog-wide button" href="/node/32" data-once="webform-dialog">Request a Demo</a>

To

<a class="o-button o-button--standard o-button--primary webform-dialog webform-dialog-wide button" href="/node/32">Request a Demo</a>

jrockowitz’s picture