Skip to content

Commit

Permalink
Fix url generation
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Nov 14, 2024
1 parent eafe450 commit 14f595a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Bootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ protected function initRateLimiter(): void
]));
$response->getHeaders()->addHeaderLine(
'Location',
'/vufind/Turnstile/Challenge?context=' . $context
$event->getRequest()->getBaseUrl() . '/Turnstile/Challenge?context=' . $context
);
} else {
$response->setStatusCode(429);
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/templates/turnstile/challenge.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
data-callback="turnstileChallengeEnded"
data-error-callback="turnstileChallengeEnded"
></div>
<form id="turnstile_form" method="post" action="/vufind/Turnstile/Verify">
<form id="turnstile_form" method="post" action="<?=$this->url('turnstile-verify')?>">
<input id="turnstile_token" name="token" type="hidden">
<input name="policyId" type="hidden" value="<?=$this->escapeHtml($policyId)?>">
<input name="destination" type="hidden" value="<?=$this->escapeHtml($destination)?>">
Expand Down

0 comments on commit 14f595a

Please sign in to comment.