Skip to content

Commit 3160489

Browse files
committed
Fix captcha URL for hub-billing and hub-managed (again)
1 parent 08f8070 commit 3160489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/hub-billing/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h3 class="font-headline text-xl md:text-2xl leading-relaxed mb-4">
4343
{{ i18n "hub_billing_createsession_submit" . }}
4444
</button>
4545
{{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
46-
{{ partial "captcha.html" (dict "captchaPayload" "subscriptionData.captcha" "captchaState" "captchaState") }}
46+
{{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "subscriptionData.captcha" "captchaState" "captchaState") }}
4747
<p :class="{'hidden': !subscriptionData.errorMessage}" class="text-sm text-red-600 mt-2" x-text="subscriptionData.errorMessage"></p>
4848
</div>
4949
</template>

layouts/hub-managed/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ <h2 class="font-h2 mb-6">
188188
{{ i18n "hub_managed_step_4_submit" }}
189189
</button>
190190
{{ $captchaUrl := printf "%s/connect/contact/challenge" .Site.Params.apiBaseUrl }}
191-
{{ partial "captcha.html" (dict "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
191+
{{ partial "captcha.html" (dict "challengeUrl" $captchaUrl "captchaPayload" "submitData.captcha" "captchaState" "captchaState") }}
192192
</div>
193193
</div>
194194
</div>

0 commit comments

Comments
 (0)