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...

Yes, "/node/32" is a real page, that is published..
Thoughts?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | screenshot_2025-01-17_at_16_56_21.png | 83.06 KB | alphex |
| screenshot_2025-01-17_at_16_54_55.png | 83.26 KB | alphex |
Comments
Comment #2
alphex commentedComment #3
alphex commentedClassifying this as a bug/regresion, because I know it works... I have an older dev environment running Version: 6.2.2 that does work...
Comment #4
liam morlandCan you use
git bisectto figure out which commit broke it?Comment #5
jrockowitz commentedYour 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>Comment #6
jrockowitz commented