Skip to content

Commit

Permalink
fix(core): carry-over request params for custom verifyRequest page (#…
Browse files Browse the repository at this point in the history
…12166)

* fix(core): carry-over request params for custom verifyRequest page

* removed commented out code

* Update index.ts

---------

Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
larryonward and balazsorban44 authored Nov 4, 2024
1 parent 2e78fa2 commit d6d8d4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/lib/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ export default function renderPage(params: RenderPageParams) {
},
verifyRequest(props?: any) {
if (pages?.verifyRequest)
return { redirect: pages.verifyRequest, cookies }
return {
redirect: `${pages.verifyRequest}${url?.search ?? ""}`,
cookies,
}
return send({
cookies,
theme,
Expand Down

0 comments on commit d6d8d4f

Please sign in to comment.