File tree Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- const REQUEST_HUB_CONTACT_URL = LEGACY_STORE_URL + '/hub /request-contact' ;
3
+ const REQUEST_HUB_CONTACT_URL = API_BASE_URL + '/connect/contact /request-contact' ;
4
4
5
5
class HubContact {
6
6
@@ -24,7 +24,8 @@ class HubContact {
24
24
$ . ajax ( {
25
25
url : REQUEST_HUB_CONTACT_URL ,
26
26
type : 'POST' ,
27
- data : this . _submitData
27
+ data : JSON . stringify ( this . _submitData ) ,
28
+ contentType : "application/json; charset=utf-8" ,
28
29
} ) . done ( _ => {
29
30
this . onRequestSucceeded ( ) ;
30
31
if ( this . _submitData . acceptNewsletter ) {
Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
93
93
< i :class ="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress} " class ="fa-solid " aria-hidden ="true "> </ i >
94
94
{{ i18n "partner_submit" }}
95
95
</ button >
96
- {{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
96
+ {{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
97
+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
97
98
</ div >
98
99
</ div >
99
100
</ div >
Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
132
132
< i :class ="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress} " class ="fa-solid " aria-hidden ="true "> </ i >
133
133
{{ i18n "book_demo_submit" }}
134
134
</ button >
135
- {{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
135
+ {{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
136
+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
136
137
</ div >
137
138
</ div >
138
139
</ div >
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ <h1 class="font-h1 mb-8">{{ .Title }}</h1>
84
84
< i :class ="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress} " class ="fa-solid " aria-hidden ="true "> </ i >
85
85
{{ i18n "contact_sales_submit" }}
86
86
</ button >
87
- {{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
87
+ {{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
88
+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
88
89
</ div >
89
90
</ div >
90
91
</ div >
Original file line number Diff line number Diff line change 14
14
< button :disabled ="feedbackData.inProgress || !acceptTerms || captchaState == 'verifying' " type ="submit " class ="btn btn-primary w-full md:w-64 " data-umami-event ="supporter-cert-influencer-form " x-cloak >
15
15
< i :class ="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress} " class ="fa-solid " aria-hidden ="true "> </ i > {{ i18n "supporter_cert_common_submit" }}
16
16
</ button >
17
- {{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
17
+ {{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
18
+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
18
19
< p :class ="{'hidden': !feedbackData.errorMessage} " class ="text-sm text-red-600 mt-2 " x-text ="feedbackData.errorMessage "> </ p >
19
20
</ div >
20
21
</ form >
Original file line number Diff line number Diff line change 14
14
< button :disabled ="feedbackData.inProgress || !acceptTerms || captchaState == 'verifying' " type ="submit " class ="btn btn-primary w-full md:w-64 " data-umami-event ="supporter-cert-other-form " x-cloak >
15
15
< i :class ="{'fa-paper-plane': !feedbackData.inProgress, 'fa-spinner fa-spin': feedbackData.inProgress} " class ="fa-solid " aria-hidden ="true "> </ i > {{ i18n "supporter_cert_common_submit" }}
16
16
</ button >
17
- {{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
17
+ {{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
18
+ {{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
18
19
< p :class ="{'hidden': !feedbackData.errorMessage} " class ="text-sm text-red-600 mt-2 " x-text ="feedbackData.errorMessage "> </ p >
19
20
</ div >
20
21
</ form >
You can’t perform that action at this time.
0 commit comments